mod, modulo and % under 2.4 and 2.5
Ben Finney
ben+python at benfinney.id.au
Thu Dec 31 21:48:28 EST 2009
"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.
--
\ “Generally speaking, the errors in religion are dangerous; |
`\ those in philosophy only ridiculous.” —David Hume, _A Treatise |
_o__) of Human Nature_, 1739 |
Ben Finney
More information about the Python-list
mailing list