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

Louie Lu report at bugs.python.org
Thu May 25 10:37:55 EDT 2017


Louie Lu added the comment:

Another way to reproduce this problem:

>>> import datetime
>>> from collections import defaultdict as dd
>>> d = dd(datetime.datetime.now)
>>> d['foo']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: <built-in method __missing__ of collections.defaultdict object at 0x7f072e55b3b8> returned NULL without setting an error

This problem doesn't appear on Python 2.7, too.

----------
nosy: +louielu

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


More information about the Python-bugs-list mailing list