]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #20478: avoid special casing Counter in statistics
authorNick Coghlan <ncoghlan@gmail.com>
Sat, 8 Feb 2014 09:44:16 +0000 (19:44 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 8 Feb 2014 09:44:16 +0000 (19:44 +1000)
commitbfd68bf4ac6661bf0fab51178583bee88840a8e6
tree25150831444976e4c64ac363fee3645861612d90
parentec1c8097c18c5fadaf74ff25c9bc88bf661e3222
Issue #20478: avoid special casing Counter in statistics

Passing Counter objects to the Counter constructor is
special cased, going through iter() firsts ensures they
are handled the same way as any other iterable.

(Committing on Steven's behalf as I don't believe his
SSH key is registered yet)
Lib/statistics.py
Lib/test/test_statistics.py
Misc/NEWS