[Python-ideas] Conventions for function annotations

Andrew Svetlov andrew.svetlov at gmail.com
Mon Dec 3 12:45:51 CET 2012


On Mon, Dec 3, 2012 at 1:08 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> * the advisability of using the __annotations__ dictionary for long-term
> introspection, rather than using the decorator to move the information to a
> purpose-specific location in a separate function attribute
My 5 cents: perhaps you don't need to use __annotations__ at all,
Signature object (PEP 362) gives more convenient way for gathering
information about function spec.



More information about the Python-ideas mailing list