Deletion of attributes fails
holdenweb opened this issue · 1 comments
holdenweb commented
Running the following code demonstrates that while attribute access and assignment work
for ObjectDict
the del
statement does not. Ideally this should be fixed.
>>> from hu import ObjectDict as od
>>> d = od()
>>> d.abc = "inserted"
>>> d
{'abc': 'inserted'}
>>> del d.abc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: abc
>>> del d['abc']
holdenweb commented
I have no clear memory of the specific changes that fixed this issue, but the code above now works as expected with no exceptions raised.