[pypy-svn] r46742 - pypy/dist/pypy/module/__builtin__

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Sep 19 18:04:19 CEST 2007


Author: cfbolz
Date: Wed Sep 19 18:04:17 2007
New Revision: 46742

Modified:
   pypy/dist/pypy/module/__builtin__/functional.py
Log:
add docstring to any and all


Modified: pypy/dist/pypy/module/__builtin__/functional.py
==============================================================================
--- pypy/dist/pypy/module/__builtin__/functional.py	(original)
+++ pypy/dist/pypy/module/__builtin__/functional.py	Wed Sep 19 18:04:17 2007
@@ -109,6 +109,9 @@
 
 
 def all(space, w_S):
+    """all(iterable) -> bool
+
+Return True if bool(x) is True for all values x in the iterable."""
     w_iter = space.iter(w_S)
     while True:
         try:
@@ -124,6 +127,9 @@
 
 
 def any(space, w_S):
+    """any(iterable) -> bool
+
+Return True if bool(x) is True for any x in the iterable."""
     w_iter = space.iter(w_S)
     while True:
         try:
@@ -138,7 +144,6 @@
 any.unwrap_spec = [ObjSpace, W_Root]
 
 
-
 class W_XRange(Wrappable):
     def __init__(self, space, start, len, step):
         self.space = space



More information about the Pypy-commit mailing list