Skip to content

Conversation

@erlend-aasland
Copy link
Contributor

@erlend-aaslanderlend-aasland commented Feb 14, 2023

Automerge-Triggered-By: GH:erlend-aasland

@erlend-aasland
Copy link
ContributorAuthor

Does this work for you, @zooba? Re. #101819 (comment)

@zooba
Copy link
Member

Can you remove the Check macro entirely? It's got to go if we're supporting multiple instances of the module, so may as well just go now.

I'd kinda like to see a few more tstate parameters being passed around, but I guess if the lower level APIs don't take them then there's nowhere to pass them 🤷‍♂️

@erlend-aasland
Copy link
ContributorAuthor

Can you remove the Check macro entirely? It's got to go if we're supporting multiple instances of the module, so may as well just go now.

The one in PC/_testconsole.c, Python/pylifecycle.c, or both? I assume the assert in Modules/_io/winconsoleio.c should stay.

@zooba
Copy link
Member

I was thinking the definition in _iomodule.h and anywhere it's used, but I see now that's fully internal anyway.

Provided we're not changing any supported public API, it's fine.

@erlend-aasland
Copy link
ContributorAuthor

Provided we're not changing any supported public API, it's fine.

AFAICS, _iomodule.h is not included in Python.h, so we should be fine.

@erlend-aasland
Copy link
ContributorAuthor

Perhaps we should wait for #101919 to land, before merging this 😄 cc. @ericsnowcurrently

@ericsnowcurrently
Copy link
Member

Don't worry about waiting for that PR to merge. I don't think it conflicts. Regardless, I don't mind fixing my branch if needed.

@kumaraditya303kumaraditya303 self-requested a review February 15, 2023 10:36
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
@miss-islington
Copy link
Contributor

Status check is done, and it's a success ✅.

@miss-islingtonmiss-islington merged commit eb0c485 into python:mainFeb 15, 2023
@erlend-aaslanderlend-aasland deleted the winconsoletype branch February 15, 2023 13:22
@erlend-aasland
Copy link
ContributorAuthor

Thanks for the reviews; highly appreciated.

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.

6 participants

@erlend-aasland@zooba@ericsnowcurrently@miss-islington@kumaraditya303@bedevere-bot