
Jan. 12, 2021
12:55 a.m.
On 12/01/21 6:21 am, Larry Hastings wrote:
Unbound code objects --------------------
...The "annotation code object" is then stored *unbound* as the internal value of ``__co_annotations__``; it is then bound on demand when the user asks for ``__annotations__``.
This seems like premature optimisation. Function objects are tiny compared to the code object, which is already a fairly complicated thing composed of a number of sub-objects. -- Greg