Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix asyncpg with Py_DEBUG mode (#719)
If Py_DEBUG enabled, then newly allocated memory is filled with the byte 0xCD (CLEANBYTE) https://docs.python.org/3/c-api/memory.html#c.PyMem_SetupDebugHooks This breaks checks for `pointer == NULL` and results in crash. From documentation PyObject_GC_Track https://docs.python.org/3/c-api/gcsupport.html#c.PyObject_GC_Track: > This should be called once all the fields followed by the tp_traverse > handler become valid, usually near the end of the constructor.
- Loading branch information