You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. run "~/jython2.7rc2/bin/jython console.py"
What is the expected output? What do you see instead?
expected: console window should pop up
actual: no error, and instead a Traceback:
Traceback (most recent call last):
File "console.py", line 36, in <module>
class Console:
File "console.py", line 37, in Console
PROMPT = sys.ps1
AttributeError: '<reflected field public org.python.core.PyObject o' object has no attribute 'ps1'
What version of the product are you using? On what operating system?
jythonconsole: Subversion head
Java: Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_45
Jython: 2.7rc2
This worked in Jython 2.7rc1.
Original issue reported on code.google.com by flemi...@gmail.com on 21 May 2015 at 11:07
The text was updated successfully, but these errors were encountered:
It looks like we have changed how the REPL is set up in Jython compared to what it was in the past, so it's more compliant with CPython. In particular the demo code used a behavior that is specifically ruled out in the Python docs (and causes problems in tools expect a standard Python): https://docs.python.org/2/library/sys.html#sys.ps1
Original issue reported on code.google.com by
flemi...@gmail.com
on 21 May 2015 at 11:07The text was updated successfully, but these errors were encountered: