On Wed, Oct 21, 2009 at 12:05 PM, Sidharth Kuruvila <[email protected]> wrote: > d = {"a":"Hello"} > print d.setdefault("a", "blah") > > Even though the string blah is not being used an object has to be > created to represent it. Even worse, you could put some complex > expression in there expecting it to evaluate only if the key is > missing. > Oh, alright.
Roshan Mathews _______________________________________________ BangPypers mailing list [email protected] http://mail.python.org/mailman/listinfo/bangpypers
