[3.7] bpo-33573: docs to suggest median() alternatives for non-numeri… · python/cpython@150cd3c (original) (raw)

Original file line number Diff line number Diff line change
@@ -169,6 +169,10 @@ However, for reading convenience, most of the examples show sorted sequences.
169 169 This is suited for when your data is discrete, and you don't mind that the
170 170 median may not be an actual data point.
171 171
172 + If your data is ordinal (supports order operations) but not numeric (doesn't
173 + support addition), you should use :func:`median_low` or :func:`median_high`
174 + instead.
175 +
172 176 .. seealso:: :func:`median_low`, :func:`median_high`, :func:`median_grouped`
173 177
174 178