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 <rep...@bugs.python.org> <http://bugs.python.org/issue27454> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com