Mention changes to PyRange_New().

This commit is contained in:
Guido van Rossum 2001-07-05 14:50:56 +00:00
parent b43961fd5d
commit 2118d90cf2
1 changed files with 5 additions and 4 deletions

View File

@ -43,17 +43,18 @@ Proposed Solution
x.tolist() method
x.start, x.stop, x.step attributes
I also propose to change the signature of the PyRange_New() C API
to remove the 4th argument (the repetition count).
By implementing a custom iterator type, we could speed up the
common use, but this is optional (the default sequence iterator
does just fine).
I expect it will take at most an hour to rip it all out; another
hour to reduce the test suite and documentation.
Scope
This PEP only affects the xrange() built-in function.
This PEP affects the xrange() built-in function and the
PyRange_New() C API.
Risks