Python to the Rescue | ShowMeDo Blogs the World

February 25, 2010
By

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

Tags: , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*