Bruno Desthuilliers <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:
> Alex Popescu a écrit : >> Jakub Stolarski <[EMAIL PROTECTED]> wrote in > > > [snip...] > > > d = dict() > answer = d.get('answer', 42) > answer in d > => False > Thanks. I think to make the 3rd approach completely equivalent I should have been using d.setdefault(key, myojbect()). ./alex -- .w( the_mindstorm )p.
-- http://mail.python.org/mailman/listinfo/python-list