diff options
author | Victor Stinner <vstinner@python.org> | 2021-04-08 07:58:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 07:58:15 (GMT) |
commit | b98eba5bc2ffbe7a0ed49d540ebc4f756ae61985 (patch) | |
tree | 42482add56f01de9dfef2cdbfac9cb212de698bf /Objects/iterobject.c | |
parent | 453074c8daf996b1815a0cd2218f0dbf1801056c (diff) | |
download | cpython-b98eba5bc2ffbe7a0ed49d540ebc4f756ae61985.zip cpython-b98eba5bc2ffbe7a0ed49d540ebc4f756ae61985.tar.gz cpython-b98eba5bc2ffbe7a0ed49d540ebc4f756ae61985.tar.bz2 |
bpo-43770: _PyTypes_Init() inits _PyAnextAwaitable_Type (GH-25266)
* Rename PyAnextAwaitable_Type to _PyAnextAwaitable_Type.
* Expose the type in the internal C API.
Diffstat (limited to 'Objects/iterobject.c')
-rw-r--r-- | Objects/iterobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/iterobject.c b/Objects/iterobject.c index f0c6b79..65af18a 100644 --- a/Objects/iterobject.c +++ b/Objects/iterobject.c @@ -333,7 +333,7 @@ static PyAsyncMethods anextawaitable_as_async = { 0, /* am_send */ }; -PyTypeObject PyAnextAwaitable_Type = { +PyTypeObject _PyAnextAwaitable_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "anext_awaitable", /* tp_name */ sizeof(anextawaitableobject), /* tp_basicsize */ @@ -369,7 +369,7 @@ PyObject * PyAnextAwaitable_New(PyObject *awaitable, PyObject *default_value) { anextawaitableobject *anext = PyObject_GC_New( - anextawaitableobject, &PyAnextAwaitable_Type); + anextawaitableobject, &_PyAnextAwaitable_Type); if (anext == NULL) { return NULL; } |