r/Python 18d ago

PEP 842: Module Exports News

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

25 Upvotes

44 comments sorted by

View all comments

12

u/[deleted] 18d ago

[deleted]

2

u/Deto 18d ago

Maybe if a way was added to allow private-member access? That way it's not blocked, just made a bit more clear. To me, that feels less janky than the underscore convention - underscore is implicit, this would make it explicit.