[New-bugs-announce] [issue29864] Misuse of Py_SIZE in dict.fromkey()

Serhiy Storchaka report at bugs.python.org
Tue Mar 21 02:02:13 EDT 2017


New submission from Serhiy Storchaka:

In dict.fromkeys() implementation when a dict is passed its size is determined by using the Py_SIZE macro. This is not correct since PyDictObject is not a PyVarObject (but see issue28988).

----------
components: Interpreter Core
messages: 289915
nosy: inada.naoki, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Misuse of Py_SIZE in dict.fromkey()
type: behavior
versions: Python 3.7

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


More information about the New-bugs-announce mailing list