Author: Benjamin Peterson <[email protected]>
Branch: 
Changeset: r44602:65ac9ccc286e
Date: 2011-05-30 19:25 -0500
http://bitbucket.org/pypy/pypy/changeset/65ac9ccc286e/

Log:    restore docs

diff --git a/pypy/objspace/std/inttype.py b/pypy/objspace/std/inttype.py
--- a/pypy/objspace/std/inttype.py
+++ b/pypy/objspace/std/inttype.py
@@ -12,9 +12,18 @@
 # ____________________________________________________________
 
 def descr_conjugate(space, w_int):
+    "Returns self, the complex conjugate of any int."
     return space.pos(w_int)
 
 def descr_bit_length(space, w_int):
+    """int.bit_length() -> int
+
+    Number of bits necessary to represent self in binary.
+    >>> bin(37)
+    '0b100101'
+    >>> (37).bit_length()
+    6
+    """
     val = space.int_w(w_int)
     if val < 0:
         val = -val
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to