mod, modulo and % under 2.4 and 2.5
W. eWatson
wolftracks at invalid.com
Fri Jan 1 00:49:28 EST 2010
Ben Finney wrote:
> "W. eWatson" <wolftracks at invalid.com> writes:
>
>> Steven D'Aprano wrote:
>>> NameError: name 'mod' is not defined
>
>> So where is it? Here are the choices.
>> import sys, os, glob
>> import string
>> from numpy import *
>
> If you use ‘from foo import *’ you forfeit any way of saying where a
> name in your code gets bound.
>
> Hence, don't do that.
>
Good idea!
More information about the Python-list
mailing list