Sorry for the long header of this mail ;-) Has anyone experienced modules developed in 2.3.2 (using IDLE and = PythonWin as IDE) don't work under 2.2.2.... I mean basic stuff like it = can not see classes from your .py file, so an import fails? It almost likes that in my case 2.2.2 doesn't like the file format = generated by IDLE or PythonWin in 2.3.2. Does someone know if this is a known problem? Vincent
Try deleting the .pyc version of the file... maybe 2.2.2 doesn't realize that the magic number is wrong and that it should recompile from the .py source. Kevin. "Raaijmakers, Vincent (IndSys, GE Interlogix)" <Vincent.Raaijmakers@ge.com> wrote in message news:<mailman.179.1066413876.2192.python-list@python.org>... > Sorry for the long header of this mail ;-) > > Has anyone experienced modules developed in 2.3.2 (using IDLE and > PythonWin as IDE) don't work under 2.2.2.... I mean basic stuff like it > can not see classes from your .py file, so an import fails? > > It almost likes that in my case 2.2.2 doesn't like the file format > generated by IDLE or PythonWin in 2.3.2. > > Does someone know if this is a known problem? > > Vincent
"Raaijmakers, Vincent (IndSys,GE Interlogix)" <Vincent.Raaijmakers@ge.com> wrote in message news:mailman.179.1066413876.2192.python-list@python.org... Sorry for the long header of this mail ;-) Has anyone experienced modules developed in 2.3.2 (using IDLE and PythonWin as IDE) don't work under 2.2.2.... I mean basic stuff like it can not see classes from your .py file, so an import fails? It almost likes that in my case 2.2.2 doesn't like the file format generated by IDLE or PythonWin in 2.3.2. Does someone know if this is a known problem? [Response by John Roth] 1. Have you checked the bug tracker? 2. Check the line endings in the .py file. This is a wild guess, but 2.2 might not be properly recognizing line endings that 2.3 recognizes. PEP 278 added universal newline support to Python, and it's being used for import and exec(), so modules that 2.3 finds readable might not be readable by 2.2 John Roth Vincent
kevin@cazabon.com (Kevin Cazabon) writes: > Try deleting the .pyc version of the file... maybe 2.2.2 doesn't > realize that the magic number is wrong and that it should recompile > from the .py source. It most certainly should. Cheers, mwh -- I also fondly recall Paris because that's where I learned to debug Zetalisp while drunk. -- Olin Shivers