(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/primaries.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/primaries.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/subscriptions.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/genindex.html| ]]
|
Previous: 5.3 Primaries Up: 5.3 Primaries Next: 5.3.2 Subscriptions
5.3.1 Attribute references
An attribute reference is a primary followed by a period and a name:
attributeref: primary "." identifier
The primary must evaluate to an object of a type that supports attribute references, e.g., a module or a list. This object is then asked to produce the attribute whose name is the identifier. If this attribute is not available, the exception AttributeError is raised. Otherwise, the type and value of the object produced is determined by the object. Multiple evaluations of the same attribute reference may yield different objects.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/primaries.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/primaries.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/subscriptions.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/genindex.html| ]]
|
Previous: 5.3 Primaries Up: 5.3 Primaries Next: 5.3.2 Subscriptions
See About this document... for information on suggesting changes.