On Thu, 4 Nov 2004 07:05:51 -0500, David Bingerwrote: > > On Nov 4, 2004, at 6:39 AM, Michele Simionato wrote: > > I also have a question/curiosity about > > PTL files; I would imagine PTL > > files to be converted into regular > > python at import time and bytecompiled > > once. So I would expect .pltc files to be > > actually .pyc files. Is that true? And > > if not, what is the difference? > > > They have the same format. The same format, yes, but they are not the same animal. If you follow these steps: - write foo.ptl - compile to foo.ptlc - delete foo.ptl - rename foo.ptlc to foo.pyc - try to 'import foo' you will get an ImportError, stating that there's a bad magic number in foo.pyc. I've never really understood why this has to be the case. It would be a bonus if ptlc == pyc, and might make it easier to deploy Quixote apps under certain deployment conditions (e.g. zipimport, py2exe) where .pyc files are expected. -- Graham