Addressing the last element of a list

Duncan Booth duncan.booth at invalid.invalid
Thu Nov 17 03:37:23 EST 2005


Mike Meyer wrote:

> Wouldn't one.__dict__ = dict(**two.__dict__) be a bit better?
> 

Those stars are redundant here. It would be cleaner to write:

   one.__dict__ = dict(two.__dict__)



More information about the Python-list mailing list