NumAttyDict¶
- class
NumAttyDict
¶ A numeric dict like
NumDict
with attribute access to keys.supports all the same operations as regular
NumDict
.Example
>>> from collectionish import NumAttyDict >>> >>> nd = NumAttyDict(a =-3.56, b=6.4) >>> nd += 2 >>> nd.a -1.56
>>> nd.b 8.4