Re: [Python-Dev] Should collections.Counter check for int?

2009-05-16 Thread Hagen Fürstenau
I'd prefer Counter to refuse non-numerical values right away as the present behaviour may hide bugs (e.g. a forgotten string-int conversion). Any opinions? (And what about negative values or floats?) Please file a report on bugs.python.org so that there's a record of this issue. Done:

Re: [Python-Dev] Should collections.Counter check for int?

2009-05-13 Thread Aahz
On Wed, May 13, 2009, Hagen F?rstenau wrote: I'd prefer Counter to refuse non-numerical values right away as the present behaviour may hide bugs (e.g. a forgotten string-int conversion). Any opinions? (And what about negative values or floats?) Please file a report on bugs.python.org so that