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 1
Total comments: 9
Patch Set 2 : use PyMemberDef
Total comments: 2
Patch Set 3 : in response to reviews
Total comments: 2
Patch Set 4 : __len__ is back!
Total comments: 3
Patch Set 5 : address more concerns
Downloaded from: http://bugs.python.org/file10183/range_lean_and_mean5.patch
Created: 2 months, 3 weeks ago
MessagesTotal messages: 9
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||