Emulating pass-by-value behaviour in python - Stack Overflow
I would like to emulate the pass-by-value behaviour in python. In other words, I would like to make absolutely sure that the function I write do not modify user supplied data. One possible way is...
Emulating pass-by-value behaviour in Python - Stack Overflow The 2026 Annual Developer Survey is live— take the Survey today! Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives Stack Internal Knowledge at work Bring the best of human thought and AI automation together at your work. Explore Stack Internal Emulating pass-by-value behaviour in Python Ask Question Asked 17 years, 2 months ago Modified 1 year, 8 months ago Viewed 104k times 79 I would like to emulate the pass-by-value behaviour i
Explore this link on the map →related reading
- Programming FAQ — Python 3.14.6 documentationdocs.python.org
- 9. Classes — Python 3.14.6 documentationdocs.python.org
- 2.4 Mutable Datacomposingprograms.com
- Demystifying Function Parameters in Go- Alex Edwardsalexedwards.net
- Facts and myths about Python names and values | Ned Batcheldernedbatchelder.com
- Moves, cloning, and copying - Rust for C-Programmersrust-for-c-programmers.com
- Copying data is wasteful, mutating data is dangerouspythonspeed.com
- Python Gotcha: Mutable Default Optional Arguments - Andrew Wegnerandrewwegner.com
- Immutable object - Wikipediaen.wikipedia.org
- A practical introduction to functional programmingmaryrosecook.com
- An introduction to functional programmingcodewords.recurse.com
- Reading 11: Recursive Data Typesweb.mit.edu