Larry Hastings added the comment:
Let's not catch Exception there. Does catching NameError make the problem go
away?
And, #20189 changed the rules for simple expressions. Now names you want from
the local module should not have the name of the module in front. You wouldn't
have to do this in foo.py:
IMPORTANT_SYMBOLIC_CONSTANT=83
def fn(a=foo.IMPORTANT_SYMBOLIC_CONSTANT): ...
So it was always a dumb idea to require it for Argument Clinic code too.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue20381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com