[pypy-commit] pypy py3.5: Update the comments about the reason for duplicating these few lines of
arigo
pypy.commits at gmail.com
Wed Aug 24 05:37:12 EDT 2016
Author: Armin Rigo <arigo at 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:
More information about the pypy-commit
mailing list