How to Override a List Attribute’s Append() Method in Python
I had a use-case where I needed to create a class that had an attribute that was a Python list. Seems simple, right? The part that made it complicated is that I needed to do something special when anything was appended to that attribute. Watching for attribute changes don’t work the same way for lists […]
How to Override a List Attribute’s Append() Method in Python Read More »