Message411604
It's like this:
>>> import foo
>>> dir(foo)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'annotations', 'x']
>>> foo.annotations
_Feature((3, 7, 0, 'beta', 1), (3, 11, 0, 'alpha', 0), 16777216)
So the attribute in foo is called annotations, i.e. it's not private. |
|
Date |
User |
Action |
Args |
2022-01-25 14:48:27 | iritkatriel | set | recipients:
+ iritkatriel, docs@python, veky |
2022-01-25 14:48:27 | iritkatriel | set | messageid: <1643122107.9.0.126520357852.issue26120@roundup.psfhosted.org> |
2022-01-25 14:48:27 | iritkatriel | link | issue26120 messages |
2022-01-25 14:48:27 | iritkatriel | create | |
|