Skip to content

bpo-46008: Return void from _PyEval_InitState().#29970

Merged
ericsnowcurrently merged 1 commit into
python:mainfrom
ericsnowcurrently:pyeval-initstate-void
Dec 7, 2021
Merged

bpo-46008: Return void from _PyEval_InitState().#29970
ericsnowcurrently merged 1 commit into
python:mainfrom
ericsnowcurrently:pyeval-initstate-void

Conversation

@ericsnowcurrently

@ericsnowcurrently ericsnowcurrently commented Dec 7, 2021

Copy link
Copy Markdown
Member

This falls into the category of keep-allocation-and-initialization separate. It also allows us to use _PyEval_InitState() in functions that also return void.

https://bugs.python.org/issue46008

Comment thread Python/ceval.c

int
_PyEval_InitState(struct _ceval_state *ceval)
void

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't get the point of this change.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's so I can call it in a void function.

@ericsnowcurrently ericsnowcurrently deleted the pyeval-initstate-void branch December 7, 2021 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants