A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-September/074703.html below:

[Python-Dev] Extending Python 3000

[Python-Dev] Extending Python 3000 [Python-Dev] Extending Python 3000Alexandre Vassalotti alexandre at peadrop.com
Wed Sep 19 00:09:00 CEST 2007
PyObject_HEAD was changed in Py3k to make it conform to C's strict
aliasing rules (See PEP 3123 [1]).

In your code, you need to change:

    static PyTypeObject MPFType = {
        PyObject_HEAD_INIT(NULL)
        0,                         /*ob_size*/
        ...
    }

to this:

    static PyTypeObject MPFType = {
        PyVarObject_HEAD_INIT(NULL, 0)
        ...
    }

Good luck,
-- Alexandre

[1]: http://www.python.org/dev/peps/pep-3123/
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4