a.setdefault(k[, x]) a[k] if k in a, else x (also setting it).
a.setdefault(k[, x])
a[k]
dict.setdefault is like dict.get, except that if k is missing, x is both returned and inserted into the dictionary as the value of k. x defaults to None.
this page was rendered by a django application in 0.00s 2012-02-11 06:06:49.922478. hosted by webfaction.