[maemo-developers] How to add PyModule_AddObject to the override file?
From: Andrea Grandi a.grandi at gmail.comDate: Wed Jul 29 12:29:30 EEST 2009
- Previous message: [GSoC 09] - Mnemosyne for Maemo
- Next message: [pymaemo] How to add PyModule_AddObject to the override file?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [GSoC 09] - Mnemosyne for Maemo
- Next message: [pymaemo] How to add PyModule_AddObject to the override file?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]