Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r86465:7f8f51b42ad0
Date: 2016-08-24 11:36 +0200
http://bitbucket.org/pypy/pypy/changeset/7f8f51b42ad0/

Log:    Update the comments about the reason for duplicating these few lines
        of code from lib-python/3/code.py.

diff --git a/lib_pypy/_pypy_interact.py b/lib_pypy/_pypy_interact.py
--- a/lib_pypy/_pypy_interact.py
+++ b/lib_pypy/_pypy_interact.py
@@ -49,9 +49,11 @@
     if mainmodule is None:
         import __main__ as mainmodule
     console = code.InteractiveConsole(mainmodule.__dict__, filename='<stdin>')
-    # some parts of code.py are copied here because it seems to be impossible
+    # some parts of code.py are copied here because it was impossible
     # to start an interactive console without printing at least one line
-    # of banner
+    # of banner.  This was fixed in 3.4; but then from 3.6 it prints a
+    # line when exiting.  This can be disabled too---by passing an argument
+    # that doesn't exist in <= 3.5.  So, too much mess: just copy the code.
     more = 0
     while 1:
         try:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to