mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Fixed 2 to 3 porting bug in pynche.ColorDB.
This commit is contained in:
parent
18987a11ce
commit
a60c2fe480
19 changed files with 72 additions and 124 deletions
|
@ -1831,7 +1831,7 @@ itself. This means, for example, that one shared object can contain a second:
|
|||
>>> l = manager.list(range(10))
|
||||
>>> l._callmethod('__len__')
|
||||
10
|
||||
>>> l._callmethod('__getslice__', (2, 7)) # equiv to `l[2:7]`
|
||||
>>> l._callmethod('__getitem__', (slice(2, 7),)) # equiv to `l[2:7]`
|
||||
[2, 3, 4, 5, 6]
|
||||
>>> l._callmethod('__getitem__', (20,)) # equiv to `l[20]`
|
||||
Traceback (most recent call last):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue