Re: [Python-Dev] possible bug in python importing pyc files

2009-12-01 Thread Martin v. Löwis
> The code that shows this problem is owned by my company, I'm not sure > if I would be able to produce it to create a bug report. But I do have some > time > to help debug the problem. > > What steps should I take to try to isolate the problem? Try isolating the precise instruction that behaves

Re: [Python-Dev] possible bug in python importing pyc files

2009-12-01 Thread Guido van Rossum
What kind of failure do you get? A a failed test, a Python exception, or a core dump? Are you sure there is no code in your app or in your tests that looks at __file__ and trips up over if it ends in '.pyc' instead of '.py' ? Are you importing from zipfiles (e.g. eggs you've downloaded)? Can you

[Python-Dev] possible bug in python importing pyc files

2009-12-01 Thread Ram Bhamidipaty
Hi, I have some code that exhibits behavior that might be a python import bug. The code is part of a set of unit tests. One test in passes when no .pyc files exist, but fails when the pyc file is present on disk. My code is not doing any thing special with import or pickle or anything "fancy". I