Apr-01-2017, 05:59 PM
In Python the distinction is generally made between mutable and immutable objects. Mutable objects can be changed in place, and are stored by reference. Immutable objects must be replaced, and are stored by value. (There are exceptions to this, but they're not that big a deal). So, the immutable types (what you would call primitive) include ints, floats, complex, strs, tuples, bytes, and frozensets.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures