Changes between Initial Version and Version 1 of Ticket #22037, comment 29
- Timestamp:
- 12/12/16 09:34:09 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22037, comment 29
initial v1 7 7 8 8 - 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 is9 to allocate (`__new__` method) an object. As the C-level, the function is 10 10 put in a particular field called tp_new of the C-struct corresponding to the 11 11 class. … … 20 20 consequence the change was reverted. 21 21 - 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 I22 fast method issuing a warning if the wrong `__new__` is called. As far as I 23 23 understand, this means that in case of multiple inheritance with Cython 24 24 code, only the first class can extend the C-struct.