Skip to content
Commit c42744b2 authored by Dan Nicholson's avatar Dan Nicholson
Browse files

Add keys for new attributes in AttributeDict

When the dictionary key already exists in AttributeDict, setting it by
attribute reference works because __getattr__ returns a valid key. If
the key doesn't exist, then setting a new attribute will result in an
actual attribute being added to the AttributeDict. Defining __setattr__
to always set a dictionary key fixes this.
parent 50efe9a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment