Message189626
I have reviewed the patch, and apart from setting the promt, I think it would be possible to set it at the beginning with the same approach:
def getprompt(self):
self.interp.runcommand(textwrap.dedent("""\
try:
print(sys.ps1, end="")
except:
import sys
sys.ps1, sys.ps2 = ">>> ", "... "
print(sys.ps1, end="")"""))
What I don't know is why ps1 and ps2 are the only attributes that are missing in the sys module within the ModifiedInterpreter. When I try InteractiveInterpreter in the original interpreter, it shows the 79 attributes that sys has originally. |
|
Date |
User |
Action |
Args |
2013-05-19 22:05:19 | alex.rodas | set | recipients:
+ alex.rodas, terry.reedy, roger.serwy, Ramchandra Apte, philwebster |
2013-05-19 22:05:19 | alex.rodas | set | messageid: <1369001119.41.0.55033312351.issue13657@psf.upfronthosting.co.za> |
2013-05-19 22:05:19 | alex.rodas | link | issue13657 messages |
2013-05-19 22:05:19 | alex.rodas | create | |
|