[Python-ideas] Crazy idea: allow keywords as names in certain positions
njs at pobox.com
Sun May 13 22:38:03 EDT 2018
On Sun, May 13, 2018 at 9:00 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Guido van Rossum wrote:
>> Of course this would still not help for names of functions that might be
>> imported directly (do people write 'from numpy import where'?).
> Maybe things could be rigged so that if you use a reserved word
> as a name in an import statement, it's treated as a name everywhere
> else in that module. Then "from numpy import where" would Just Work.
'from numpy import *' is also common.
Nathaniel J. Smith -- https://vorpus.org
More information about the Python-ideas