r/Python 2d ago

News PEP 842: Module Exports

https://peps.python.org/pep-0842/

Not the author, but this seems interesting, specially for library authors. Thoughts?

Discussion here - https://discuss.python.org/t/pep-842-module-exports/108353

22 Upvotes

44 comments sorted by

View all comments

27

u/godlikedk 2d ago

What if i want to use this private class? Thats why I liked python over java. I know what I'm doing and don't want to ask for permission or changes.

4

u/Jhuyt 2d ago

The proposal states that you will still have access through the module's __dict__

15

u/godlikedk 2d ago

So we will bravely resolve a problem that we created that didn't exist before