When trying to cythonize my code using the -3 flag, I got many errors
like the one below:

Error converting Pyrex file to C:
------------------------------------------------------------
...
    if not (<int>PetscInitializeCalled): return
    if (<int>PetscFinalizeCalled): return
    # deinstall custom error handler
    ierr = PetscPopErrorHandlerPython()
    if ierr != 0:
        fprintf(stderr, "PetscPopErrorHandler() failed "
                       ^
------------------------------------------------------------

/u/dalcinl/Devel/petsc4py-dev/src/PETSc/PETSc.pyx:307:24: Unicode
literals do not support coercion to C types other than Py_UNICODE.


Is this an oversight? The string literal is passed to a C function
with a  char* argument. Should we accept such usages when -3 is
passed?


-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to