Author fhaxbox66@googlemail.com
Recipients fhaxbox66@googlemail.com
Date 2011-01-19.08:38:46
SpamBayes Score 5.12747e-08
Marked as misclassified No
Message-id <1295426330.25.0.635363870245.issue10943@psf.upfronthosting.co.za>
In-reply-to
Content
I tried to port the extension module at http://code.google.com/p/pyhyphen/source/browse/3.x/hnjmodule.c to the stable C API using abitype.py. I gave up after the following exceptions:
- execption raised for missing PyVarObject_HEAD: this could be rixed by deleting a /* */ comment before. I think abitype.py should properly skip comments rather than forcing the user to delete them.
- the xxxmodule.c on which hnjmodule.c is based, defines a PyObject Str_type wherr tp_basicsize is 0 rather than sizeof(XXX). This causes abitype.py to raise a key error as '0' seems to be ignored by abitype.py.

Finally, I suggest to add to the source tree a boiler plate C module conforming to the stable API such as xxxmodule-stable-api.c. This would help creating extensions from scratch.
History
Date User Action Args
2011-01-19 08:38:50fhaxbox66@googlemail.comsetrecipients: + fhaxbox66@googlemail.com
2011-01-19 08:38:50fhaxbox66@googlemail.comsetmessageid: <1295426330.25.0.635363870245.issue10943@psf.upfronthosting.co.za>
2011-01-19 08:38:46fhaxbox66@googlemail.comlinkissue10943 messages
2011-01-19 08:38:46fhaxbox66@googlemail.comcreate