summaryrefslogtreecommitdiff
path: root/tools/allocation_tracking/alloc_hook.pyx
Commit message (Collapse)AuthorAgeFilesLines
* DEP: remove allocation_tracking, deprecate PyDataMem_SetEventHook (#20394)Matti Picus2021-11-181-42/+0
| | | | | | | | | | | | | * DEP: remove allocation_tracking * DOC: add release note * DEP: deprecate PyDataMem_SetEventHook * DOC: fix name of release note * fixes from review * DOC: document deprecation of PyDataMem_EventHookFunc
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-1/+1
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* Wrap hook functions with GIL, add example.Thouis (Ray) Jones2012-06-181-0/+42
Wraps the SetHook and calls to the hook with the GIL, to prevent races. Adds an example of using the interface for callbacks into python code.