[Edu-sig] Strange transitive import problem
Peter Drake
drake at lclark.edu
Fri Feb 9 20:36:06 CET 2007
The graphics2.py file I supplied earlier (http://www.lclark.edu/
~drake/courses/cs0/graphics2.py) is a procedural front-end for
Zelle's graphics.py.
If I run the graphics2.py module, everything works fine, and I can
issue commands interactively.
A problem happens if I write ANOTHER program, say junk.py:
from graphics2 import *
print "imported graphics2"
background("red")
When I run this (within IDLE), it hangs trying to import graphics2.
There is no error message or processor load, it just hangs.
Can anyone explain (or reproduce) this behavior?
Peter Drake
Assistant Professor of Computer Science
Lewis & Clark College
http://www.lclark.edu/~drake/
More information about the Edu-sig
mailing list