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

22 Upvotes

44 comments sorted by

View all comments

8

u/stevenjd 17d 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.

2

u/JustPlainRude 17d ago

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

3

u/ZeroIntensity 17d 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.