#976 "print mymodule.cvar" crashes Python on Windows (not Linux)

open
nobody
python (259)
5
2012-12-21
2008-12-27
No

"print mymodule.cvar" crashes Python on Windows XP (Swig 1.3.36, Python 2.5, VC++ 2005) but works fine on Debian 4.0 (Swig 1.3.36, Python 2.4, gcc).

This looks like an old SWIG bug that was never fixed. See for example Bug#1058361 (Nov 2004) and http://www.nabble.com/simple-cvar-bug-td2636426.html#a2636794 (Jan 2006). These issues were resolved with a "Works for me on Linux" and "Does it work with the development version?", respectively.

The reason this is important is that that dir(mymodule.cvar) just returns an empty array, so the only way to find out what are the names of the global variables is with the print statement. (I'd actually prefer that the dir command worked, but I'll take what I get.)

Please let me know what other information you need to squash this bug.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks