Marc 'BlackJack' Rintsch:
> counter['B'] = counter.get('B', 0) + 1

If you benchmark it, you will find that using the get() method it's
quite slower.

Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to