Anonymous user
Compound data type: Difference between revisions
→{{header|Python}}: === Dictionary ===
m ({{Template:See also lists}}) |
(→{{header|Python}}: === Dictionary ===) |
||
Line 1,158:
# objects directly instantiated from "object()" cannot be "monkey patched"
# however this can generally be done to it's subclasses</lang>
=== Dictionary ===
Mutable. Can add keys (attributes)
<lang python>pseudo_object = {'x': 1, 'y': 2}</lang>
=== Named Tuples ===
|