[Pyrex] ANN: Pyrex 0.9.6

Alexander Belchenko bialix at ukr.net
Sun Oct 7 19:55:38 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greg Ewing пишет:
> Pyrex 0.9.6 is now available:

After changing os.uname to platform.uname I'm able to compile pyrex extensions on win32.
However I have warning from MSVC compiler about types incompatibility
in generated C-code:

bzrlib\_knit_load_data_c.c(1293) : warning C4133: 'function' : incompatible types - from 'PyObject
*' to 'PyTypeObject *'

The C-code in question is inside auto-generated helper function __Pyx_Raise:

        #if PY_VERSION_HEX < 0x02050000
		...
        #else
            type = (PyObject*) type->ob_type;
            Py_INCREF(type);
            if (!PyType_IsSubtype(type, PyExc_BaseException)) {    // <<<<<<<<<<<<<
                PyErr_SetString(PyExc_TypeError,
                    "raise: exception class must be a subclass of BaseException");
                goto raise_error;
            }
        #endif

I mark with comment
// <<<<<<<<<<<<<
line that triggers warning about incompatible types.
Signature of PyType_IsSubtype function:
int PyType_IsSubtype( PyTypeObject *a, PyTypeObject *b)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHCR2azYr338mxwCURAu6iAJ4tAUKhAyBpxa7zhFlf43xs9RMb1ACfTXZ+
G9s8Szf2C2em7XS1vriYtpk=
=s2v4
-----END PGP SIGNATURE-----




More information about the Pyrex mailing list