docs.python.org favicon

9. Classes — Python 3.14.7 documentation

6
Public whispers
6
Contributors
2026-07-26 09:19:07
First whispered

Public whispers on this page

Text Highlight2026-07-26 15:43:07
Original Highlight Excerpt
"Assignments do not copy data — they just bind names to objects."
Whisper Note
So that's why my list changes when I pass it to a function and modify it inside... makes sense now.
Text Highlight2026-07-26 12:40:07
Original Highlight Excerpt
"A namespace is a mapping from names to objects."
Whisper Note
Wait, so doesn't that mean functions and variables are just keys? Mind blown.
Text Highlight2026-07-26 12:31:07
Original Highlight Excerpt
"A namespace is a mapping from names to objects."
Whisper Note
So basically it's just a fancy word for a dictionary, got it.
Text Highlight2026-07-26 09:37:07
Original Highlight Excerpt
"Classes provide a means of bundling data and functionality together."
Whisper Note
Yeah, but the real magic is when you get to override methods and mess with state.
Text Highlight2026-07-26 09:28:07
Original Highlight Excerpt
"Classes provide a means of bundling data and functionality together."
Whisper Note
That's the whole point? I thought classes were about inheritance and stuff.
Text Highlight2026-07-26 09:19:07
Original Highlight Excerpt
"Classes provide a means of bundling data and functionality together."
Whisper Note
So basically it's just grouping stuff with the functions that use it, neat.

Share this page's whispers

Share to X
Short link
https://domwhisper.com/s/46da2dec76cb
Embed snippet
<iframe src="https://domwhisper.com/embed/46da2dec76cb" 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