[pypy-svn] r69650 - pypy/trunk/pypy/module/posix

fijal at codespeak.net fijal at codespeak.net
Thu Nov 26 11:40:11 CET 2009


Author: fijal
Date: Thu Nov 26 11:40:11 2009
New Revision: 69650

Modified:
   pypy/trunk/pypy/module/posix/app_posix.py
   pypy/trunk/pypy/module/posix/interp_posix.py
Log:
put a bit of docstrings


Modified: pypy/trunk/pypy/module/posix/app_posix.py
==============================================================================
--- pypy/trunk/pypy/module/posix/app_posix.py	(original)
+++ pypy/trunk/pypy/module/posix/app_posix.py	Thu Nov 26 11:40:11 2009
@@ -154,6 +154,10 @@
             raise Exception, e     # bare 'raise' does not work here :-(
 
     def wait():
+        """ wait() -> (pid, status)
+    
+        Wait for completion of a child process.
+        """
         return posix.waitpid(-1, 0)
 
 else:

Modified: pypy/trunk/pypy/module/posix/interp_posix.py
==============================================================================
--- pypy/trunk/pypy/module/posix/interp_posix.py	(original)
+++ pypy/trunk/pypy/module/posix/interp_posix.py	Thu Nov 26 11:40:11 2009
@@ -500,6 +500,7 @@
 readlink.unwrap_spec = [ObjSpace, str]
 
 def fork(space):
+    
     try:
         pid = os.fork()
     except OSError, e: 
@@ -507,6 +508,10 @@
     return space.wrap(pid)
 
 def waitpid(space, pid, options):
+    """ waitpid(pid, options) -> (pid, status)
+    
+    Wait for completion of a given child process.
+    """
     try:
         pid, status = os.waitpid(pid, options)
     except OSError, e: 
@@ -811,6 +816,7 @@
     else:
         def WSTAR(space, status):
             return space.newbool(getattr(os, name)(status))
+    WSTAR.__doc__ = getattr(os, name).__doc__
     WSTAR.unwrap_spec = [ObjSpace, int]
     WSTAR.func_name = name
     return WSTAR



More information about the Pypy-commit mailing list