8000 gh-103793: Defer formatting task name by itamaro · Pull Request #103767 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-103793: Defer formatting task name #103767

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

Merged
merged 14 commits into from
Apr 29, 2023
Merged
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
pass error up if PyUnicode_FromFormat returns NULL
  • Loading branch information
itamaro committed Apr 25, 2023
commit fb2bd7fbf086b633e8b0fcc49dc3f24ec6b7951c
3 changes: 3 additions & 0 deletions Modules/_asynciomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2455,6 +2455,9 @@ _asyncio_Task_get_name_impl(TaskObj *self)
PyObject *name = PyUnicode_FromFormat(
"Task-%" PRIu64, ++state->task_name_counter);
Py_XSETREF(self->task_name, name);
if (self->task_name == NULL) {
return NULL;
}
}
return Py_NewRef(self->task_name);
}
Expand Down
0