We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33bb208 commit 057ee4eCopy full SHA for 057ee4e
1 file changed
src/bd2k/util/expando.py
@@ -36,6 +36,27 @@ class Expando(dict):
36
37
>>> json.dumps(o)
38
'{"foo": 42, "bar": "hi"}'
39
+
40
+ Attributes can be deleted, too:
41
42
+ >>> o = Expando(foo=42)
43
+ >>> o.foo
44
+ 42
45
+ >>> del o.foo
46
47
+ Traceback (most recent call last):
48
+ ...
49
+ AttributeError: 'Expando' object has no attribute 'foo'
50
+ >>> o['foo']
51
52
53
+ KeyError: 'foo'
54
55
56
57
58
+ AttributeError: foo
59
60
"""
61
62
def __init__( self, *args, **kwargs ):
0 commit comments