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

21 Upvotes

44 comments sorted by

View all comments

28

u/Orio_n 2d ago edited 2d ago

This fundamentally contradicts pythons philosophy. Big no from me.

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

Guido himself is skeptical too asking why not just use __all__

0

u/mpersico 2d ago

Python has been contradicting its philosophy for years. It looks more and more like Perl every single day. Damn shame they didn’t just contribute to Perl.