[issue3208] function annotation for builtin and C function

Amaury Forgeot d'Arc report at bugs.python.org
Thu Jul 24 09:00:02 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The "First" argument does not apply here, we could just say "annotations
are not a function invariant", but the "Second" argument is valid to me. 

A solution would be a global (or interpreter-local if we really want to
support sub-interpreters) registry that stores annotations. The index
could not be the PyCFunctionObject (since it is different for every
bound method), but the address of the PyMethodDef entry.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3208>
_______________________________________


More information about the Python-bugs-list mailing list