mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
#17351: merge with 3.3.
This commit is contained in:
commit
a41fb4be5b
7 changed files with 23 additions and 22 deletions
|
|
@ -324,7 +324,7 @@ are always available. They are listed here in alphabetical order.
|
|||
'__initializing__', '__loader__', '__name__', '__package__',
|
||||
'_clearcache', 'calcsize', 'error', 'pack', 'pack_into',
|
||||
'unpack', 'unpack_from']
|
||||
>>> class Shape(object):
|
||||
>>> class Shape:
|
||||
... def __dir__(self):
|
||||
... return ['area', 'perimeter', 'location']
|
||||
>>> s = Shape()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue