2011/5/27 Steven D'Aprano <st...@pearwood.info>

> Never put a lone dict literal {...} inside a call to dict(), that's just a
> waste of time. Just use the literal on its own.
>
That's what I thought about this, I just didn't want to believe that
docs.python.org wrote a redundant example.


> third_dict = dict(first_dict, three=3, four=4)
>
> Thank you, these were useful examples!

P.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to