[issue27454] PyUnicode_InternInPlace can use PyDict_SetDefault

INADA Naoki report at bugs.python.org
Tue Jul 5 09:01:36 EDT 2016


New submission from INADA Naoki:

PyDict_SetDefault() was added Python 3.4

Currently, PyUnicode_InternInPlace() uses PyDict_GetItem, and PyDict_SetItem if no item found.
It can be replaced PyDict_SetDefault() easily.

----------
components: Interpreter Core
files: intern-setdefault.patch
keywords: patch
messages: 269819
nosy: naoki
priority: normal
severity: normal
status: open
title: PyUnicode_InternInPlace can use PyDict_SetDefault
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file43626/intern-setdefault.patch

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


More information about the Python-bugs-list mailing list