| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…tive step Reading or writing such a slice computed a negative length and failed with SystemError. Empty slices, which select nothing, are still allowed. (cherry picked from commit d9e8d226a3d05ea020256086aee24d21f9792206)
| Back | FazBrowse Home | New Git URL |
Reading or writing a Blob slice with a negative step computed a negative length and failed with SystemError, which means an internal error.
It now raises ValueError.
Empty slices, which select nothing, are still allowed: blob[3:8:-1] returns b"" and assigning b"" to it is a no-op.
Support for negative steps is added in 3.16 by GH-150450.