[pypy-commit] pypy py3.5: Call sys.__interactivehook__ (issue #2558)
rlamy
pypy.commits at gmail.com
Tue May 16 13:52:30 EDT 2017
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r91315:94add67df5b3
Date: 2017-05-16 18:51 +0100
http://bitbucket.org/pypy/pypy/changeset/94add67df5b3/
Log: Call sys.__interactivehook__ (issue #2558)
diff --git a/pypy/interpreter/app_main.py b/pypy/interpreter/app_main.py
--- a/pypy/interpreter/app_main.py
+++ b/pypy/interpreter/app_main.py
@@ -694,6 +694,8 @@
del mainmodule.__file__
except (AttributeError, TypeError):
pass
+ if hasattr(sys, '__interactivehook__'):
+ run_toplevel(sys.__interactivehook__)
# Then we need a prompt.
inspect = True
else:
More information about the pypy-commit
mailing list