Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r56698:dcefcdfcc21a
Date: 2012-08-10 21:00 +0200
http://bitbucket.org/pypy/pypy/changeset/dcefcdfcc21a/

Log:    add docstrings

diff --git a/pypy/module/signal/interp_signal.py 
b/pypy/module/signal/interp_signal.py
--- a/pypy/module/signal/interp_signal.py
+++ b/pypy/module/signal/interp_signal.py
@@ -364,6 +364,15 @@
 @jit.dont_look_inside
 @unwrap_spec(which=int, first=float, interval=float)
 def setitimer(space, which, first, interval=0):
+    """setitimer(which, seconds[, interval])
+    
+    Sets given itimer (one of ITIMER_REAL, ITIMER_VIRTUAL
+    or ITIMER_PROF) to fire after value seconds and after
+    that every interval seconds.
+    The itimer can be cleared by setting seconds to zero.
+    
+    Returns old values as a tuple: (delay, interval).
+    """
     with lltype.scoped_alloc(itimervalP.TO, 1) as new:
 
         timeval_from_double(first, new[0].c_it_value)
@@ -381,6 +390,10 @@
 @jit.dont_look_inside
 @unwrap_spec(which=int)
 def getitimer(space, which):
+    """getitimer(which)
+    
+    Returns current value of given itimer.
+    """
     with lltype.scoped_alloc(itimervalP.TO, 1) as old:
 
         c_getitimer(which, old)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to