r/Python • u/poppy_92 • Jul 31 '26
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
26
Upvotes
View all comments
Show parent comment
4
u/ZeroIntensity Aug 01 '26
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.