Aaaargh! "global name 'eggz' is not defined"

Ben Finney ben+python at
Fri Oct 30 00:25:56 CET 2009

aahz at (Aahz) writes:

> Coincidentally, I tried PyFlakes yesterday and was unimpressed with
> the way it doesn't work with "import *".

That's pretty much the reason to avoid ‘from foo import *’: it makes the
namespace indeterminate without actually running the code. Just as much
a problem for the human reader as for a reader like ‘pyflakes’.

But you knew that already.

 \        “Humanity has advanced, when it has advanced, not because it |
  `\     has been sober, responsible, and cautious, but because it has |
_o__)            been playful, rebellious, and immature.” —Tom Robbins |
Ben Finney

More information about the Python-list mailing list