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
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to