8000 gh-76785: Add *Channel.is_closed by ericsnowcurrently · Pull Request #110606 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-76785: Add *Channel.is_closed #110606

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 6 commits into from
Oct 19, 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
Make sure __module__ gets set.
  • Loading branch information
ericsnowcurrently committed Oct 17, 2023
commit 09b7812df2bd38067511f2204050e574025fe4b2
6 changes: 3 additions & 3 deletions Modules/_xxinterpchannelsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ static PyTypeObject *
add_new_type(PyObject *mod, PyType_Spec *spec, crossinterpdatafunc shared,
struct xid_class_registry *classes)
{
PyTypeObject *cls = (PyTypeObject *)PyType_FromMetaclass(
NULL, mod, spec, NULL);
PyTypeObject *cls = (PyTypeObject *)PyType_FromModuleAndSpec(
mod, spec, NULL);
if (cls == NULL) {
return NULL;
}
Expand Down Expand Up @@ -2266,7 +2266,7 @@ static PyStructSequence_Field channel_info_fields[] = {
};

static PyStructSequence_Desc channel_info_desc = {
.name = "ChannelInfo",
.name = MODULE_NAME ".ChannelInfo",
.doc = channel_info_doc,
.fields = channel_info_fields,
.n_in_sequence = 8,
Expand Down
0