Changes between Initial Version and Version 1 of Ticket #22037, comment 29


Ignore:
Timestamp:
12/12/16 09:34:09 (3 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22037, comment 29

    initial v1  
    77
    88- When creating a class, Python has to decide which function needs to be called
    9   to allocate (__new__ method) an object. As the C-level, the function is
     9  to allocate (`__new__` method) an object. As the C-level, the function is
    1010  put in a particular field called tp_new of the C-struct corresponding to the
    1111  class.
     
    2020  consequence the change was reverted.
    2121- In https://hg.python.org/cpython/rev/a37cc3d926ec, they reintroduced the
    22   fast method issuing a warning if the wrong __new__ is called. As far as I
     22  fast method issuing a warning if the wrong `__new__` is called. As far as I
    2323  understand, this means that in case of multiple inheritance with Cython
    2424  code, only the first class can extend the C-struct.