[New-bugs-announce] [issue26745] Redundant code in _PyObject_GenericSetAttrWithDict
Xiang Zhang
report at bugs.python.org
Tue Apr 12 22:37:14 EDT 2016
New submission from Xiang Zhang:
It seems some code in _PyObject_GenericSetAttrWithDict is not necessary. There is no need to check data descriptor again using PyDescr_IsData. And the second if (f != NULL) {} will never function.
----------
components: Interpreter Core
files: _PyObject_GenericSetAttrWithDict.patch
keywords: patch
messages: 263297
nosy: xiang.zhang
priority: normal
severity: normal
status: open
title: Redundant code in _PyObject_GenericSetAttrWithDict
versions: Python 3.6
Added file: http://bugs.python.org/file42450/_PyObject_GenericSetAttrWithDict.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26745>
_______________________________________
More information about the New-bugs-announce
mailing list