Add example of mutable list sharing by synckerz · Pull Request #1200 · realpython/python-guide
Repository navigation
Add example of mutable list sharing - #1200
Open
synckerz wants to merge 3 commits into realpython:master from synckerz:docs/issue-1158-mutable-list-copy
Open
Add example of mutable list sharing #1200 synckerz wants to merge 3 commits into realpython:master from synckerz:docs/issue-1158-mutable-list-copy
Conversation
synckerz commented Nov 8, 2026
Copy link Copy Markdown
Document how augmented assignment can modify a shared list and demonstrate using copy() to avoid unintended side effects.
synckerz added 3 commits November 8, 2026 17:06
Add example of mutable list sharing
4c49c88
Document how augmented assignment can modify a shared list and demonstrate using copy() to avoid unintended side effects.
Fix indentation in mutable list example
8af9d57
Update examples in structure.rst for clarity
11b58f0
Clarified examples of mutable and immutable types in Python.Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment