4 ms·
You can easily define your own type that is "everything". But how useful is a dict in python with keys and values of varying types? I've certainly never used
by jrockway 15y ago
You can easily define your own type that is "everything". But how useful is a dict in python with keys and values of varying types? I've certainly never used one.
- TylerE 15y agoIt's very useful. Use it like you'd use a bare object in Javascript, as a freeform data container to hold whatever properties you need. A bit like a key-value NoSQL store, actually.