a = b = 1 just syntactic sugar?

Michele Simionato mis6 at pitt.edu
Sun Jun 8 14:04:30 CEST 2003


Ed Avis <ed at membled.com> wrote in message news:<l13cilipsy.fsf at budvar.future-i.net>...

> A couple more anomalous cases could be cleaned up by adding dict.set
> as a counterpart of dict.setdefault

Am I mistaken or you want dict.__setitem__ ?


                                                      Michele




More information about the Python-list mailing list