[pypy-commit] pypy default: Fix-up the docstring for min.
alex_gaynor
noreply at buildbot.pypy.org
Thu Oct 6 16:20:24 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r47843:2f94f8ae8756
Date: 2011-10-06 10:20 -0400
http://bitbucket.org/pypy/pypy/changeset/2f94f8ae8756/
Log: Fix-up the docstring for min.
diff --git a/pypy/module/__builtin__/functional.py b/pypy/module/__builtin__/functional.py
--- a/pypy/module/__builtin__/functional.py
+++ b/pypy/module/__builtin__/functional.py
@@ -193,9 +193,11 @@
return min_max(space, __args__, "max")
def min(space, __args__):
- """Return the smallest item in a sequence.
+ """min(iterable[, key=func]) -> value
+ min(a, b, c, ...[, key=func]) -> value
- If more than one argument is passed, return the minimum of them.
+ With a single iterable argument, return its smallest item.
+ With two or more arguments, return the smallest argument.
"""
return min_max(space, __args__, "min")
More information about the pypy-commit
mailing list