Giter VIP home page Giter VIP logo

Comments (7)

pyscripter avatar pyscripter commented on June 1, 2024

It should not make any difference to P4D. PyCFunction_New calls PyCFunction_NewEx with the last argument set to nil.

PyAPI_FUNC(PyObject *)PyCFunction_New(PyMethodDef *ml, PyObject *self)
{
    return PyCFunction_NewEx(ml, self, NULL);
}

PyObject *PyCFunction_NewEx(PyMethodDef *ml, PyObject *self, PyObject *module)

from python4delphi.

Alexey-T avatar Alexey-T commented on June 1, 2024

this NewEx function not needed for P4D? Why did you add it to PythonEngine then. (my fork don't have it.)

from python4delphi.

pyscripter avatar pyscripter commented on June 1, 2024

I now remember. PyCFunction_New was not exported in Python 3.4. It appears this has been fixed in 3.6 and later.

See https://bugs.python.org/issue21354

from python4delphi.

Alexey-T avatar Alexey-T commented on June 1, 2024

and why _NewEx function was added here? it is not documented API in py.

from python4delphi.

pyscripter avatar pyscripter commented on June 1, 2024

So the change is needed to support certain versions of Python 3.4, 3.5

from python4delphi.

pyscripter avatar pyscripter commented on June 1, 2024

The lack of documentation is another Python bug:
https://bugs.python.org/issue16776

from python4delphi.

Alexey-T avatar Alexey-T commented on June 1, 2024

Ok, will add in my fork too.

from python4delphi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.