This may be silly, but it\'s been nagging the back of my brain for a while.
Python gives us two built-in ways to delete attributes from objects, the del
Unquestionably the former. In my view this is like asking whether foo.bar is better than getattr(foo, "bar"), and I don't think anyone is asking that question :)
foo.bar
getattr(foo, "bar")