[Python-Dev] cpython: Minor refactoring. Move reference count logic into function that adds entry.

Serhiy Storchaka storchaka at gmail.com
Sun Jun 28 09:52:38 CEST 2015


On 28.06.15 08:03, raymond.hettinger wrote:
> https://hg.python.org/cpython/rev/637e197be547
> changeset:   96697:637e197be547
> user:        Raymond Hettinger <python at rcn.com>
> date:        Sat Jun 27 22:03:35 2015 -0700
> summary:
>    Minor refactoring.  Move reference count logic into function that adds entry.

This looks not correct. key should be increfed before calling 
PyObject_RichCompareBool() for the same reason as startkey.




More information about the Python-Dev mailing list