This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author prinsherbert
Recipients docs@python, prinsherbert
Date 2016-04-22.12:08:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461326895.36.0.898462963597.issue26827@psf.upfronthosting.co.za>
In-reply-to
Content
I think 

PyObject *PyInit_myextention(void)

should be

PyMODINIT_FUNC PyInit_myextention(void)

on https://docs.python.org/3/howto/cporting.html#module-initialization-and-state

It didn't work for me until I replaced this with a message in the about 'undefined PyInit_myextention'. However, when I used nm to inspect the .so object file, I fond the PyInit_myextention (but probably with the wrong return type). Moreover, whenever I would remove the same .so importing resulted in a different error complaining that the module does not exist (strongly suggesting that I did not mix up .so files).

Good luck!
History
Date User Action Args
2016-04-22 12:08:15prinsherbertsetrecipients: + prinsherbert, docs@python
2016-04-22 12:08:15prinsherbertsetmessageid: <1461326895.36.0.898462963597.issue26827@psf.upfronthosting.co.za>
2016-04-22 12:08:15prinsherbertlinkissue26827 messages
2016-04-22 12:08:15prinsherbertcreate