> I tried deleting a mycalc.pyc that had been created and the problem > cleared up! If I remember correctly, for a while I had moved > mycalc.py to another folder in PYTHONPATH (I had recently learned > how to modify PYTHONPATH in Win XP), and the .pyc was in this > folder. Sorry I don't remember clearly. But what is clear is the > problem cleared up immediately after deleting the .pyc. Does this > make sense?
Definitely. If the old pyc file was found first in the search path then it would have been imported. If the py and pyc are inthe same folder that won't be a problem because Python will see both and check the modification date but if it finds an isolated pyc first it will just use that. Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor