[issue20024] Py_BuildValue() can call Python code with an exception set

2016-01-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed patch fixed the issue only for tuples, but not for lists or dicts. See more general patch in issue26168. -- ___ Python tracker ___

[issue20024] Py_BuildValue() can call Python code with an exception set

2014-01-21 Thread STINNER Victor
STINNER Victor added the comment: parsermodule.patch was applied as 91cb83f895cf (Python 3.3) and cd952e92c180 (3.4). -- ___ Python tracker ___ _

[issue20024] Py_BuildValue() can call Python code with an exception set

2014-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29b4eb47f65e by Victor Stinner in branch 'default': Issue #20024: Py_BuildValue() now saves/restores the current exception before http://hg.python.org/cpython/rev/29b4eb47f65e -- nosy: +python-dev ___ Pyt

[issue20024] Py_BuildValue() can call Python code with an exception set

2014-01-21 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the review Serhiy. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue20024] Py_BuildValue() can call Python code with an exception set

2014-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. I have searched the sources and have not found any use of Py_BuildValue() which can be used for test. Py_BuildValue() can fail only due to memory error. It can also can fail with non-UTF8 string, but all uses of Py_BuildValue() with a string in a tupl

[issue20024] Py_BuildValue() can call Python code with an exception set

2013-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue20024] Py_BuildValue() can call Python code with an exception set

2013-12-19 Thread STINNER Victor
STINNER Victor added the comment: parsermodule.patch: fix usage of Py_BuildValue() in the parser module. -- ___ Python tracker ___ ___

[issue20024] Py_BuildValue() can call Python code with an exception set

2013-12-19 Thread STINNER Victor
New submission from STINNER Victor: In Python 3.4, an assertion now checks that no exception is set when arbitrary Python code is called. Python code may suppress the exception. When Py_BuildValue() is used to build a tuple and an error when the creation of an item failed, the function may exe

[issue20024] Py_BuildValue() can call Python code with an exception set

2013-12-19 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file33209/parsermodule.patch ___ Python tracker ___ ___ Python-bugs-list mailin