Skip to content

Conversation

@encukou
Copy link
Owner

@encukou encukou commented Feb 16, 2022

@erlend-aasland, here's a rough draft of a PEP.

Copy link

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

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

This is a very nice draft; thanks! I left some comments after reading through it once. I'll have another round later today or tomorrow.

Rejected Ideas
==============

Keep things as they were and not break anything
Copy link

@erlend-aasland erlend-aasland Feb 17, 2022

Choose a reason for hiding this comment

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

Would not this section make more sense in the subinterpreters or per-interpreter GIL PEPs? It feels kinda out of place here. Also, if we are to keep it, I would rephrase it to something more accurate and direct, such as "Do not isolate modules in the stdlib".

It is not clear to me what "things" is. I would guess that the sentence implies "don't convert static types to heat types", "don't convert global state to module state", "don't apply PEP 630 to the stdlib", or maybe "drop subinterpreter support". It is hard to tell. Currently, I'm afraid this will only be a source of confusion.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yeah, the title should have XXX as well. I guess “Do not isolate modules in the stdlib” works best, because it needs the other changes.

Choose a reason for hiding this comment

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

We should add a short sentence about why having stdlib extension modules without multi-init support and with global state is a problem; for example, such modules would hamper a lot of Eric's work-in-progress.

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Do not isolate modules in the standard library
----------------------------------------------

XXX Someone write something here please

Choose a reason for hiding this comment

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

IMO we can reference Eric's work-in-progress (per-interpreter GIL), subinterpreters issues (multiple subinterpreters + static global state => 💥), ... anything else?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Do we want to make this PEP depend on Eric's PEP?
IMO it would be better if it can stand on its own.

Choose a reason for hiding this comment

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

IMO it would be better if it can stand on its own.

Yes, that's preferable.

Copy link
Owner Author

Choose a reason for hiding this comment

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

So, let's remove the Rejected Ideas section altogether and let the discussion generate some.

Are you happy with your name on this? I think it's ready to post to python-dev.

Choose a reason for hiding this comment

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

Sounds good to me!

@encukou
Copy link
Owner Author

encukou commented Mar 21, 2022

PR for the two general sections marked “XXX move this to PEP 630”: python/peps#2450

Copy link

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

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

Your #24 (comment) sounds good to me. I'm fine with putting my name on this (see one last nit); let's post it 🚀

@erlend-aasland
Copy link

Is there any issues that needs to be resolved before posting to python-dev?

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
@encukou
Copy link
Owner Author

encukou commented Apr 4, 2022

Just need more time in the day...

@encukou
Copy link
Owner Author

encukou commented Apr 4, 2022

PEP PR: python/peps#2499
I'll close this, we won't need an out-of-date copy in this repo.

@encukou encukou closed this Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants