[issue6038] Should collections.Counter check for int?

2009-05-26 Thread Hagen Fürstenau
New submission from Hagen Fürstenau hfuerste...@gmx.net: I noticed that while the docs say that Counts are allowed to be any integer value including zero or negative counts, collections.Counter doesn't perform any check on the types of count values. Instead, non-numerical values will lead to

[issue6038] Should collections.Counter check for int?

2009-05-16 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6038 ___ ___

[issue6038] Should collections.Counter check for int?

2009-05-16 Thread Carl Johnson
Carl Johnson c...@carlsensei.com added the comment: Sounds like a job for ABCs. -- nosy: +carlj ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6038 ___

[issue6038] Should collections.Counter check for int?

2009-05-16 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: No thanks. I'm happy with the API as-is. It is a consenting adult tool, simply a dictionary that automatically fills-in missing values with zero. There's no reason to slow it down to a crawl with integer checks at every