On 30/05/20 4:28 pm, Steven D'Aprano wrote:
     py> len()
     TypeError: len() takes exactly one argument (0 given)

to be replaced with something like this:

     UnboundLocalError: local variable referenced before assignment

Not in my version of the idea, because a parameter would only be
allowed to be unbound if it is specifically declared as optional
in the header (by some means to be determined).

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/A5OGJTYQNI2MQQLKM4Q7APWRW27C4OC5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to