mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-118379: Use PyTuple_Pack instead of Py_BuildValue if possible (GH-118381)
This commit is contained in:
parent
17a8af9508
commit
9a75d56d5d
6 changed files with 9 additions and 9 deletions
|
@ -632,8 +632,8 @@ _PyErr_StackItemToExcInfoTuple(_PyErr_StackItem *err_info)
|
|||
PyObject *exc_type = get_exc_type(exc_value);
|
||||
PyObject *exc_traceback = get_exc_traceback(exc_value);
|
||||
|
||||
return Py_BuildValue(
|
||||
"(OOO)",
|
||||
return PyTuple_Pack(
|
||||
3,
|
||||
exc_type ? exc_type : Py_None,
|
||||
exc_value ? exc_value : Py_None,
|
||||
exc_traceback ? exc_traceback : Py_None);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue