[maemo-developers] How to add PyModule_AddObject to the override file?

From: Andrea Grandi a.grandi at gmail.com
Date: Wed Jul 29 12:29:30 EEST 2009
Hi all,

I was looking at this page about creating new types in Python:
http://docs.python.org/extending/newtypes.html
it looks quite clear, but what if I've to add this to an override file?

In particular: how can I register the type?

the example uses: PyModule_AddObject(m, "Noddy", (PyObject *)&noddy_NoddyType);
inside the init[modulename] function, but how can I modify the initmethod?

Thanks for your help,

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.andreagrandi.it/pgp_key.asc
More information about the maemo-developers mailing list