Skip to content

bpo-43770: _PyTypes_Init() inits _PyAnextAwaitable_Type - #25266

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:anext_await
Apr 8, 2021
Merged

bpo-43770: _PyTypes_Init() inits _PyAnextAwaitable_Type#25266
vstinner merged 1 commit into
python:masterfrom
vstinner:anext_await

Conversation

@vstinner

@vstinnervstinner commented Apr 7, 2021

Copy link
Copy Markdown
Member
  • Rename PyAnextAwaitable_Type to _PyAnextAwaitable_Type.
  • Expose the type in the internal C API.

https://bugs.python.org/issue43770

* Rename PyAnextAwaitable_Type to _PyAnextAwaitable_Type.
* Expose the type in the internal C API.
Comment threadInclude/iterobject.h
PyAPI_DATA(PyTypeObject) PyCallIter_Type;
#ifdef Py_BUILD_CORE
extern PyTypeObject _PyAnextAwaitable_Type;
#endif

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be moved inside _PyTypes_Init(). I tried to mimick other header files which defines all types.

@gvanrossum

Copy link
Copy Markdown
Member

+1

@vstinner
vstinner merged commit b98eba5 into python:masterApr 8, 2021
@vstinner
vstinner deleted the anext_await branch April 8, 2021 07:58
@vstinner

Copy link
Copy Markdown
MemberAuthor

Merged. Thanks for the review @gvanrossum.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@vstinner@gvanrossum@the-knights-who-say-ni@bedevere-bot