[issue43062] Non-integer values in collections.Counter

2021-01-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report, but there isn't anything that can be done about this. The core design concept for Counter was to be a regular dictionary augmented by a few capabilities that made it suitable for counting. It isn't closed-off in any way. On the p

[issue43062] Non-integer values in collections.Counter

2021-01-29 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue43062] Non-integer values in collections.Counter

2021-01-29 Thread HuangFuSL
Change by HuangFuSL : -- components: +Library (Lib) -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue43062] Non-integer values in collections.Counter

2021-01-29 Thread HuangFuSL
New submission from HuangFuSL : When I am creating a counter object provided by `collections.Counter` using a mapping object like a dictionary, it seems that Python will not check the validity of the values in the mapping object. I've checked the following Python script could be successfully