Skip to content

Sync python-mutable-immutable with the updated tutorial - #867

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-mutable-vs-immutable-types-20260929
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-mutable-vs-immutable-types-20260929

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Maintenance sync for Python's Mutable vs Immutable Types: What's the Difference?.

What changed

  • point.py: the Coordinate.__set__() descriptor now quotes the attribute name in its error message (can't set attribute 'x'), matching the article's code block and the REPL output it shows.

The rest of the folder already matches the article. This cycle's article edits (Python 3.14 output drift: 15 / 3 → 5.0, the extended __slots__ AttributeError message, the 3.14 unhashable-key message, __static_attributes__ in the class __dict__) only touch REPL output, so none of them need code changes here.

Links

Verification

  • Ran every script on Python 3.14.6, and exercised Point/Immutable in a REPL: can't set attribute 'x', can't set attribute 'unit'.
  • uvx ruff@0.14.1 format --check and uvx ruff@0.14.1 check: both pass.

🤖 Generated with Claude Code

… Mutable vs Immutable Types

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant