DescriptionPer discussions on Python-3000, I've stipped range down to a bare minimum. Here's an overview of the patch: 1. No slicing. 2. Length is computed in constructor and is a PyLong in the object's struct. __len__ simply tries to convert it to a Py_ssize_t. 3. start, stop, and, step are exposed as attributes Patch Set 1Patch Set 2 : use PyMemberDefPatch Set 3 : in response to reviewsPatch Set 4 : __len__ is back!Patch Set 5 : address more concerns
Downloaded from: http://bugs.python.org/file10183/range_lean_and_mean5.patch
Created: 1 year, 6 months ago
MessagesTotal messages: 9
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||