Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: py3.6
Changeset: r97503:7e303c8f90af
Date: 2019-09-16 22:57 +0200
http://bitbucket.org/pypy/pypy/changeset/7e303c8f90af/
Log: update docstrings
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
@@ -203,19 +203,26 @@
implementation_of)
def max(space, __args__):
- """max(iterable[, key=func]) -> value
- max(a, b, c, ...[, key=func]) -> value
+ """
+ max(iterable, *[, default=obj, key=func]) -> value
+ max(arg1, arg2, *args, *[, key=func]) -> value
- With a single iterable argument, return its largest item.
+ With a single iterable argument, return its biggest item. The
+ default keyword-only argument specifies an object to return if
+ the provided iterable is empty.
With two or more arguments, return the largest argument.
"""
return min_max(space, __args__, "max")
def min(space, __args__):
- """min(iterable[, key=func]) -> value
- min(a, b, c, ...[, key=func]) -> value
+ """
+ min(...)
+ min(iterable, *[, default=obj, key=func]) -> value
+ min(arg1, arg2, *args, *[, key=func]) -> value
- With a single iterable argument, return its smallest item.
+ With a single iterable argument, return its smallest item. The
+ default keyword-only argument specifies an object to return if
+ the provided iterable is empty.
With two or more arguments, return the smallest argument.
"""
return min_max(space, __args__, "min")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit