Message179970
Suprisingly, keyword only arguments become evaluated first:
>>> def f(a=undefined1,*,b=undefined2):pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'undefined2' is not defined
It should be "undefined1".
I am sure, this is going to surprise developers and breaks assumptions, people tend to make. So far (to my knowledge) nothing that was separated by a "," could be evaluated in a mixed order.
Please consider to change this around. |
|
Date |
User |
Action |
Args |
2013-01-14 19:37:14 | Kay.Hayen | set | recipients:
+ Kay.Hayen |
2013-01-14 19:37:14 | Kay.Hayen | set | messageid: <1358192234.34.0.230545519043.issue16967@psf.upfronthosting.co.za> |
2013-01-14 19:37:14 | Kay.Hayen | link | issue16967 messages |
2013-01-14 19:37:13 | Kay.Hayen | create | |
|