[pypy-commit] pypy py3.6: update docstrings

cfbolz pypy.commits at gmail.com
Mon Sep 16 16:58:06 EDT 2019


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
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")


More information about the pypy-commit mailing list