Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r68793:6e982b92251a
Date: 2014-01-20 14:37 -0800
http://bitbucket.org/pypy/pypy/changeset/6e982b92251a/

Log:    add print's help text

diff --git a/pypy/module/__builtin__/app_io.py 
b/pypy/module/__builtin__/app_io.py
--- a/pypy/module/__builtin__/app_io.py
+++ b/pypy/module/__builtin__/app_io.py
@@ -57,7 +57,14 @@
     return line
 
 def print_(*args, **kwargs):
-    """The new-style print function from py3k."""
+    r"""print(value, ..., sep=' ', end='\n', file=sys.stdout)
+
+    Prints the values to a stream, or to sys.stdout by default.
+    Optional keyword arguments:
+    file: a file-like object (stream); defaults to the current sys.stdout.
+    sep:  string inserted between values, default a space.
+    end:  string appended after the last value, default a newline.
+    """
     fp = kwargs.pop("file", None)
     if fp is None:
         fp = sys.stdout
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to