Re: [Python-Dev] cpython: Simplify the code of get_attrib_from_keywords somewhat.

April 22, 2013
5:13 p.m.
On 22.04.13 15:52, eli.bendersky wrote:
- PyDict_DelItem(kwds, attrib_str); + PyDict_DelItemString(kwds, ATTRIB_KEY);
PyDict_GetItemString() and PyDict_DelItemString() internally create a Python string. I.e. new code creates one additional string if attrib was found in kwds.
attrib can be NULL in case of memory allocation error.
4348
Age (days ago)
4348
Last active (days ago)
1 comments
2 participants
participants (2)
-
Eli Bendersky
-
Serhiy Storchaka