Comment on draft PEP for deprecating six builtins
Alex Martelli
aleax at aleax.it
Mon Apr 29 04:31:44 EDT 2002
Raymond Hettinger wrote:
...
> Like 'open' in the os module, 'pow' is a high risk candidate from for
> being clobbered by a 'from math import *'.
It's another good example of why "from ... import *", like other
statements that play havoc with your namespace in ways you can't
fully control (e.g., exec in local/global scope), is evil.
>> But I double the suitable module is math, as this would
^^^^^^
Freudian slip, I swear! Thinking of "math" tells my subconscious
"it's about double" -- and "doubt" becomes "double" (as for any
bridge player it might...).
Alex
More information about the Python-list
mailing list