Commit Graph

22 Commits

Author SHA1 Message Date
Serhiy Storchaka 2e576f5aec bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263) 2017-04-24 09:05:00 +03:00
Steven D'Aprano fb315dbe82 Issue #27181 remove geometric_mean and defer for 3.7. 2016-10-05 03:24:45 +11:00
Steven D'Aprano a790fe7ff8 Remove expected failure from test of _product internal function. 2016-08-24 13:54:31 +10:00
Steven D'Aprano d6ea3011c5 Remove support for nth root of negative numbers with odd powers.
Although nth roots of negative numbers are real for odd n, the
statistics module doesn't make use of this. Remove support for
negative roots from the private _nth_root function, which
simplifies the test suite.
2016-08-24 12:48:12 +10:00
Victor Stinner e3f1e8a9d3 Issue #27181: Skip tests known to fail until a fix is found 2016-08-16 22:22:21 +02:00
Steven D'Aprano 9a2be91c6b Issue27181 add geometric mean. 2016-08-09 13:58:10 +10:00
Steven D'Aprano e7fef52f98 Tighten up test of harmonic mean on a single value. 2016-08-09 13:19:48 +10:00
Steven D'Aprano a474afdddc Add harmonic mean and tests. 2016-08-09 12:49:01 +10:00
Benjamin Peterson ab078e9ed1 Backed out changeset af29d89083b3 (closes #25548) (closes #27498) 2016-07-13 21:13:29 -07:00
Steven D'Aprano 8c115a46e7 Issue27139 patch by Julio C Cardoza. 2016-07-08 02:38:45 +10:00
Kushal Das 5801ecb440 Issue #25548: Showing memory address of class objects in repl 2016-06-04 16:21:13 -07:00
Steven D'Aprano 3b06e24352 Issue 26002 and 25974
patches by Upendra Kumar and Stefan Krah
speed up median by using bisect, and general speedup for Decimals using as_integer_ratio
2016-05-05 03:54:29 +10:00
Stefan Krah 2335f44d8e Issue #25928: Temporarily disable some tests in test_statistics in order
to sort out its assumptions about the as_integer_ratio() interface.
2015-12-29 00:11:36 +01:00
Steven D'Aprano b28c3275c7 Issue #25177: Fixed problem with the mean of very small and very large numbers. 2015-12-01 19:59:53 +11:00
Benjamin Peterson ed135f46ec remove unused import 2015-02-25 16:47:14 -05:00
Berker Peksag f8c111d4d7 Issue #16056: Rename test method in test_statistics to avoid conflict. 2014-09-24 15:03:25 +03:00
Nick Coghlan 4a7668adca Close #20536: correctly handle Decimal exponents in statistics 2014-02-08 23:55:14 +10:00
Nick Coghlan 73afe2a972 Close #20481: Disallow mixed type input in statistics
The most appropriate coercion rules are not yet clear, so simply
disallowing mixed type input for 3.4.

(Committed on Steven's behalf)
2014-02-08 19:58:04 +10:00
Nick Coghlan bfd68bf4ac 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)
2014-02-08 19:44:16 +10:00
Serhiy Storchaka b12cb6a550 Issue #19535: Fixed test_docxmlrpc, test_functools, test_inspect, and
test_statistics when python is run with -OO.
2013-12-08 18:16:18 +02:00
Christian Heimes ad39360a02 Fix suspicious test case 2013-11-26 01:32:15 +01:00
Larry Hastings f5e987bbe6 Issue #18606: Add the new "statistics" module (PEP 450). Contributed
by Steven D'Aprano.
2013-10-19 11:50:09 -07:00