Steven D'Aprano <st...@remove-this-cybersource.com.au> writes:
> For the record, the four lines Paul implies are "confusing" are:
> 
> try:
>     d[key] += value
> except KeyError:
>     d[key] = value

Consider what happens if the computation of "key" or "value" itself
raises KeyError.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to