enhancing dictionary update method and the dict type constructor

Alexis Layton alexis.layton at post.harvard.edu
Sat Nov 17 22:45:59 EST 2001


Ah yes, bitten by the fact that characters are not first class
Python objects again.... :-)

Alexis

Tim Peters wrote:

> 
> Since d.update(pairs) is dead on arrival, enhancements to it probably don't
> stand a better chance <wink>.  I especially squirm at this one, since, e.g.,
> it would mean that
> 
>     d.update("oops")
> 
> deletes the keys "o", "p" and "s" from d ("oops" is a sequence of
> 1-sequences), and that's way too obscure.




More information about the Python-list mailing list