Changes between Version 1 and Version 2 of Ticket #17670


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17670

    • Property Summary changed from Get rid of hook_tp_functions() hack to Proper implementation of object pools
  • Ticket #17670 – Description

    v1 v2  
    1 The 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".
     1`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
    33Since this custom `__new__` and `__dealloc__` are used to implement an object pool, it's better to make a new class to implement such pools.