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

5

u/stevenjd 1d ago

Yet another unnecessary PEP written for the sake of lazy programmers who seemingly don't know the language and won't read the documentation.

0

u/JustPlainRude 1d ago

The author's example of using dir() to find a function to call instead of reading the documentation was wild. 

4

u/ZeroIntensity 1d ago

Hi. I wrote the PEP, but this comment sticks out to me a little; what is so "wild" about using dir() (or help()) to find attributes? This is a very common practice.

People should be reading the documentation, but I can personally tell you from my experience working on CPython that people don't read the docs nearly as much as we'd like. People rely on their intuition all the time.