dealloc function in python extend c module

2009-07-01 Thread Shen, Yu-Teh
I create my extend type something like http://www.python.org/doc/current/extending/newtypes.html. And my type has a member which is a pointer point to my allocate memory ( no ref count). ex: --- typedef struct { PyObject_HEAD /* Type-specific

python extend c++ module

2009-06-30 Thread Shen, Yu-Teh
I have written a c++ extend module and I use distutils to build. setup.py from distutils.core import setup, Extension setup(name="noddy", version="1.0", ext_modules=[ Extension("noddy3", ["noddy3.cpp", "a.cpp"]) ]) I found it's quite strange when compilin