From: SourceForge.net <no...@so...> - 2011-07-25 07:31:52
|
Bugs item #3377012, was opened at 2011-07-25 15:31 Message generated for change (Tracker Item Submitted) made by texnician You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3377012&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: python Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Tang Yaguang (texnician) Assigned to: Nobody/Anonymous (nobody) Summary: swig builtin class is incompatible with stackless python Initial Comment: The cxx code generated by swig with -builtin option will not be compiled in stackless python environment. I have searched through the stackless python source code and found the reason: In stackless python, the PyHeapTypeObject and PyTypeObject are the same type. In the 'object.h' it defines: #define PyHeapTypeObject PyTypeObject In swig, the builtin object implemented as a PyHeapTypeObject and the object's layout is slighty different with stackless python's PyTypeObject. so the cxx code can't be compiled. Maybe this bug is mainly caused by stackless python, but I think it is more easy to be fixed in swig. I will upload a patch in short a while. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3377012&group_id=1645 |