[Cython] Broken C-API generation for ext modules

Lisandro Dalcin dalcinl at gmail.com
Thu Feb 23 22:00:14 CET 2012


The commit below from Stefan broke C-API generation for extension
modules. The problem is that the code of __Pyx_ImportModule() and
__Pyx_ImportType() depeds on the #definition of
__Pyx_PyIdentifier_FromString , and such #define is not emitted in
C-API headers.

Stefan, given that __Pyx_PyIdentifier_FromString() is only used in
__Pyx_ImportModule() and __Pyx_ImportType(), what's your opinion about
just rolling back your commit?


commit 500f9a40f5ad441c2c204d076cfc4f82a41d531b
Author: Stefan Behnel <scoder at users.berlios.de>
Date:   Sat Sep 10 00:14:05 2011 +0200

    minor code simplification in utility functions by using macro for
Py2/3 dependent PyString/PyUnicode_FromString() calls


-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169


More information about the cython-devel mailing list