Skip to content

gh-91603: Speed up UnionType instantiation #91865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Objects/unionobject.c
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
uriyyo and serhiy-storchaka authored Apr 26, 2022
commit 70d9d3053ef3a49089b315bc2bc515880227c0a2
2 changes: 1 addition & 1 deletion Objects/unionobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ merge_obj_and_union(PyObject *left, PyObject *right) {
}
}

if(_PyTuple_Resize(&tuple, pos) < 0) {
if (_PyTuple_Resize(&tuple, pos) < 0) {
Py_DECREF(tuple);
return NULL;
}
Expand Down