| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
(backport from rev. 54154)
|
|
|
|
| |
slice(5).__hash__() now raises a TypeError.
|
|
|
|
|
|
|
| |
(Contributed by Walter Dörwald.)
* Convert test_slice.py to unittest format
* Expand the test coverage.
|
|
|
|
|
|
|
|
|
|
|
|
| |
/* this is harder to get right than you might think */
angered some God somewhere. After noticing
>>> range(5000000)[slice(96360, None, 439)]
[]
I found that my cute test for the slice being empty failed due to
overflow. Fixed, and added simple test (not the above!).
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".
This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).
Now Tim and Jack can have at it. :)
|
|
version of PySlice_GetIndicesEx"):
> OK. Michael, if you want to check in indices(), go ahead.
Then I did what was needed, but didn't check it in. Here it is.
|