[issue20144] Argument Clinic doesn't support named constants as default values
Larry Hastings
report at bugs.python.org
Mon Jan 6 21:23:55 CET 2014
Larry Hastings added the comment:
It is unfortunate, but on the other hand that's what happens in Python too:
>>> import sys
>>> import inspect
>>> def foo(blah=sys.maxsize): pass
...
>>> str(inspect.signature(foo))
'(blah=9223372036854775807)'
Nick proposed something we could use to fix these (I think he called them "named constants") but it's not in the language yet. Anyway propagating those all the way from Argument Clinic to inspect.Signature would be tricky.
Could you live with this being checked in to 3.4?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20144>
_______________________________________
More information about the Python-bugs-list
mailing list