docs.python.org favicon

6. Modules — Python 3.14.7 documentation

5
Public whispers
5
Contributors
2026-07-27 09:19:15
First whispered

Public whispers on this page

Text Highlight2026-07-27 12:40:15
Original Highlight Excerpt
"since it often causes poorly readable code."
Whisper Note
I only use * in the REPL, it's too handy to give up there.
Text Highlight2026-07-27 12:31:15
Original Highlight Excerpt
"since it often causes poorly readable code."
Whisper Note
Yeah, wildcard imports make it impossible to know where names come from.
Text Highlight2026-07-27 09:37:15
Original Highlight Excerpt
"A module is a file containing Python definitions and statements."
Whisper Note
I always wondered why __name__ showed up in scripts. Now it makes sense.
Text Highlight2026-07-27 09:28:15
Original Highlight Excerpt
"A module is a file containing Python definitions and statements."
Whisper Note
Wait, so if I just write some functions in a file, I can import them anywhere? Cool.
Text Highlight2026-07-27 09:19:15
Original Highlight Excerpt
"A module is a file containing Python definitions and statements."
Whisper Note
So basically any .py file is a module? That's simpler than I thought.

Share this page's whispers

Share to X
Short link
https://domwhisper.com/s/1d6819b6e05c
Embed snippet
<iframe src="https://domwhisper.com/embed/1d6819b6e05c" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>

See what people are discussing on docs.python.org

Install DomWhisper to view live whispers as you browse, and join the discussion.

Get the extension