This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients JelleZijlstra, ncoghlan, nedbat, r.david.murray, serhiy.storchaka, yselivanov
Date 2016-06-02.22:48:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
We definitely can't use a valid identifier in the code generator, since any valid identifier we used might shadow a nonlocal, global or builtin name (and the latter two cases aren't visible to the compiler at compile time).

They're also genuinely not positional only:

>>> print(setcomp_func(iter(range(5))))
{0, 1, 4, 9, 16}
>>> print(setcomp_func(**{".0": iter(range(5))}))
{0, 1, 4, 9, 16}
History
Date User Action Args
2016-06-02 22:48:00ncoghlansetrecipients: + ncoghlan, nedbat, r.david.murray, serhiy.storchaka, yselivanov, JelleZijlstra
2016-06-02 22:48:00ncoghlansetmessageid: <[email protected]>
2016-06-02 22:48:00ncoghlanlinkissue19611 messages
2016-06-02 22:48:00ncoghlancreate