mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Patch #552433: Special-case tuples. Avoid sub-type checking for lists.
Avoid checks for negative indices and duplicate checks for support of the sequence protocol.
This commit is contained in:
parent
000e37c3c4
commit
01f94bda38
4 changed files with 35 additions and 2 deletions
|
@ -192,6 +192,10 @@ Build
|
|||
|
||||
C API
|
||||
|
||||
- Added new macro PySequence_ITEM(o, i) that directly calls
|
||||
sq_item without rechecking that o is a sequence and without
|
||||
adjusting for negative indices.
|
||||
|
||||
- PyRange_New() now raises ValueError if the fourth argument is not 1.
|
||||
This is part of the removal of deprecated features of the xrange
|
||||
object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue