Strategies when hunting for dictionary corruption

Ethan Furman ethan at stoneleaf.us
Tue Feb 7 13:35:12 EST 2017


On 02/06/2017 04:56 AM, Skip Montanaro wrote:

> I'm wrapping some C++ libraries using pybind11.

I asked one of the core-devs about it, and he suggested:

> Python 3.6 got a new C define in Objects/dictobjet.c
> which might help to track the bug:
>
> /* Uncomment to check the dict content in _PyDict_CheckConsistency() */
> /* #define DEBUG_PYDICT */
>
> Uncomment and recompile Python (in debug mode).
>
> Victor

--
~Ethan~



More information about the Python-list mailing list