How to create (static|class)-methods from C

Iustin Pop iusty at k1024.org
Sat Dec 28 20:39:21 EST 2002


On Sat, Dec 28, 2002 at 09:27:44PM +0100, Thomas Heller wrote:
> 
> My ctypes module contains code which works for Python 2.2 and Python 2.3.
> Unfortunately the 2.3 version isn't currently up to date, but will be soon.
> If you're interested, I can post some examples (hopefully on Monday).

It's not that important; I was just amazed at how easy it was to mix C and
python and the only thing I didn't managed was the class/static methods;
that only function I wanted a static one can stay in the module namespace.
But if it can be done in 2.2, it would be interesting.

Thanks,
Iustin Pop




More information about the Python-list mailing list