| Integer |
int |
Immutable |
Modification: creates new object, similar to Value Copy effect |
| Float |
float |
Immutable |
Modification: same as above |
| String |
str |
Immutable |
Modification: same as above |
| Boolean |
bool |
Immutable |
Modification: same as above, bool inherits from int |
| Tuple |
tuple |
Immutable |
- Modification: cannot be modified in place
- Empty instance:
tuple() or ()
|
| List |
list |
Mutable |
- Modification: in-place modification, affects all references
- Empty instance:
list() or []
|
| Dictionary |
dict |
Mutable |
- Modification: same as above
- Empty instance:
dict() or {}
|
| Set |
set |
Mutable |
- Modification: same as above
- Empty instance:
set()
|
| Custom Class |
class |
Mutable by default |
- Modification: in-place attribute modification
- Empty instance:
Foo(bar, ...), constructor dependent
|