[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

STINNER Victor report at bugs.python.org
Tue Jun 20 16:34:13 EDT 2017


STINNER Victor added the comment:

This bug is a duplicate of bpo-30524.

Louie Lu: "This bug is introduce at commit: 37e4ef7b17ce6e98ca725c0a53ae14c313c0e48c, then fixed at commit: 998c20962ca3e2e693c1635efe76c0144dde76fc"

This is the fix for master. For Python 3.6, the fix is the commit f0ff849adc6b4a01f9d1f08d9ad0f1511ff84541. I added wrote unit tests for this bug, but also for many ways to calls functions: commit b7577456c430283f8b7ec4e914b701cb943cc69b.

> Much simpler example: https://gist.github.com/parente/a4772297459f05e43e12a5820051431b

I'm able to reproduce the bug in Python 3.6 before f0ff849adc6b4a01f9d1f08d9ad0f1511ff84541, and also confirm that this commit fixes the bug.

The good news is that Python 3.6.2rc1 is already available and contains my fix, and 3.6.2 final should be released soon.

----------
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> iter(classmethod, sentinel) broken for Argument Clinic class methods?

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30473>
_______________________________________


More information about the Python-bugs-list mailing list