dict also has 'get' which provides a default if the key isn't defined: a={} print a.get('a','default') default -Rick King southfield MI |
-- http://mail.python.org/mailman/listinfo/python-list
dict also has 'get' which provides a default if the key isn't defined: a={} print a.get('a','default') default -Rick King southfield MI |
-- http://mail.python.org/mailman/listinfo/python-list