[issue29019] dict.fromkeys overallocates when given a sparse dict

INADA Naoki report at bugs.python.org
Mon Dec 19 22:23:49 EST 2016


INADA Naoki added the comment:

Since `seq` is checked by PyDict_CheckExact(seq) already,
((PyDictObject*)seq)->ma_used may be better.

----------

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


More information about the Python-bugs-list mailing list