Skip to content

Sync python-isinstance with the updated tutorial - #995

Merged
realpython-bot merged 2 commits into
masterfrom
maintenance/what-does-isinstance-do-in-python-20261204
Dec 4, 2026
Merged

realpython-bot merged 2 commits into
masterfrom
maintenance/what-does-isinstance-do-in-python-20261204

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Syncs python-isinstance with the maintenance update of What Does isinstance() Do in Python?.

Changes

  • balls_v2.py: get_state() output strings now match the article (Color black, Number 8, Shape sphere); ruff format collapses the print() call to one line.
  • player_iterables.py: PlayersVersionThree.__getitem__() raises IndexError("Invalid Index"), as the article shows.

Draft: https://realpython.com/pbjt/blog/post/2765/change/
Card: https://trello.com/c/rbP6one6

Verified: ran every script in the folder on Python 3.14.10; outputs match the article, including the intended TypeError demos. ruff format --check, ruff check (ruff 0.14.1), and dircheck.py pass.

🤖 Generated with Claude Code

realpython-bot and others added 2 commits December 4, 2026 06:06
Match get_state() output strings and the IndexError message to the
article's code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@realpython-bot
realpython-bot merged commit a4e24d5 into master Dec 4, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/what-does-isinstance-do-in-python-20261204 branch December 4, 2026 07:12
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