This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients gvanrossum, kj, larry, pbryan
Date 2021-04-29.14:30:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
kj: I just added support for default locals to inspect.get_annotation(), and I basically copied-and-pasted your dict(vars(base)) approach.

Is this "surprising, but required" behavior due specifically to this being a backwards-incompatible change? inspect.get_annotations() will be a new function in Python 3.10, which means I have no existing users to worry about. Does that mean I don't have the problem you're solving by reversing the order of namespace lookup, and I can just pass globals and locals in like normal?
Date User Action Args
2021-04-29 14:30:32larrysetrecipients: + larry, gvanrossum, pbryan, kj
2021-04-29 14:30:32larrysetmessageid: <>
2021-04-29 14:30:32larrylinkissue42904 messages
2021-04-29 14:30:32larrycreate