Click here to Skip to main content
15,891,316 members
Articles / Programming Languages / Python

Python vs C++ Series: Mutable, Immutable, and Copy Assignment

Rate me:
Please Sign up or sign in to vote.
4.85/5 (9 votes)
25 Oct 2021CPOL7 min read 10.5K   7  
Mutable, Immutable and copy assignment in Python vs. C++
Python objects’ immutability is defined by their types. Knowing which data types are mutable, which are not and the behavior when using mutable objects in certain situations is critical to avoid writing bug code.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
My name is Shun. I am a software engineer and a Christian. I currently work at a startup company.
My Website: https://formosa1544.com
Email: shun@formosa1544.com

Comments and Discussions