Will give more thought to any more tips. about 3 hours ago from webin reply to voidspace · # Python Tips (2) – access member variable (‘foo’) of ‘obj’ with default (0) if non-existent: obj.__dict__.get(‘foo’, 0) ; using in decorator …
See more here:
Python to the Rescue | ShowMeDo Blogs the World