[issue26120] pydoc: move __future__ imports out of the DATA block

Irit Katriel report at bugs.python.org
Tue Jan 25 09:48:27 EST 2022


Irit Katriel <iritkatriel at gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue26120>
_______________________________________


More information about the Python-bugs-list mailing list