Changes between Initial Version and Version 1 of Ticket #17670


Ignore:
Timestamp:
01/25/15 16:58:57 (7 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17670 – Description

    initial v1  
    11The classes `integer.pyx` and `real_double.pyx` use `hook_tp_functions()` to change `tp_new` and `tp_dealloc` at run-time. With Cython, such hacks are not needed: one can just define `__new__` and `__dealloc__` and things should "just work".
    22
     3Since this custom `__new__` and `__dealloc__` are used to implement an object pool, it's better to make a new class to implement such pools.
     4
    35Some hackery is still needed because these types also disable garbage collection by changing `tp_flags` and there is no clean Cython interface to do this.