mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #24379: Revert the operator.subscript patch (dccc4e63aef5) pending resolution of the related refcnt leak.
This commit is contained in:
parent
0bdf9ea136
commit
a1fc949b5a
4 changed files with 1 additions and 83 deletions
|
|
@ -333,21 +333,6 @@ expect a function argument.
|
|||
[('orange', 1), ('banana', 2), ('apple', 3), ('pear', 5)]
|
||||
|
||||
|
||||
.. data:: subscript
|
||||
|
||||
A helper to turn subscript notation into indexing objects. This can be
|
||||
used to create item access patterns ahead of time to pass them into
|
||||
various subscriptable objects.
|
||||
|
||||
For example:
|
||||
|
||||
* ``subscript[5] == 5``
|
||||
* ``subscript[3:7:2] == slice(3, 7, 2)``
|
||||
* ``subscript[5, 8] == (5, 8)``
|
||||
|
||||
.. versionadded:: 3.6
|
||||
|
||||
|
||||
.. function:: methodcaller(name[, args...])
|
||||
|
||||
Return a callable object that calls the method *name* on its operand. If
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue