(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-exceptions.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/types.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/typesother.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 2.2 Built-in Exceptions Up: 2.1 Built-in Types Previous: 2.1.7 Other Built-in Types
2.1.8 Special Attributes
The implementation adds a few special read-only attributes to several object types, where they are relevant:
- __dict__
- A dictionary of some sort used to store an object's (writable) attributes.
- __methods__
- List of the methods of many built-in object types, e.g.,
[].__methods__ yields ['append', 'count', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort'].
- __members__
- Similar to __methods__, but lists data attributes.
- __class__
- The class to which a class instance belongs.
- __bases__
- The tuple of base classes of a class object.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-exceptions.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/types.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/typesother.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 2.2 Built-in Exceptions Up: 2.1 Built-in Types Previous: 2.1.7 Other Built-in Types
Send comments on this document to python-docs@python.org.