]> granicus.if.org Git - python/commit
Issue #18520: Add a new PyStructSequence_InitType2() function, same than
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 22 Jul 2013 20:24:54 +0000 (22:24 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 22 Jul 2013 20:24:54 +0000 (22:24 +0200)
commit1c8f059019d79f1891f42a2656a96919a1187967
treebcec768e9ca0d0e1e9e1ab80e0dfc0fe29ae758d
parent2a545099f7ed45de1d45b45200d82c6298b75d2b
Issue #18520: Add a new PyStructSequence_InitType2() function, same than
PyStructSequence_InitType() except that it has a return value (0 on success,
-1 on error).

 * PyStructSequence_InitType2() now raises MemoryError on memory allocation failure
 * Fix also some calls to PyDict_SetItemString(): handle error
17 files changed:
Include/pythonrun.h
Include/structseq.h
Misc/NEWS
Modules/_lsprof.c
Modules/grpmodule.c
Modules/posixmodule.c
Modules/pwdmodule.c
Modules/resource.c
Modules/signalmodule.c
Modules/spwdmodule.c
Modules/timemodule.c
Objects/floatobject.c
Objects/longobject.c
Objects/structseq.c
Python/pythonrun.c
Python/sysmodule.c
Python/thread.c