This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alex.rodas
Recipients Ramchandra Apte, alex.rodas, philwebster, roger.serwy, terry.reedy
Date 2013-05-19.22:05:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369001119.41.0.55033312351.issue13657@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-05-19 22:05:19alex.rodassetrecipients: + alex.rodas, terry.reedy, roger.serwy, Ramchandra Apte, philwebster
2013-05-19 22:05:19alex.rodassetmessageid: <1369001119.41.0.55033312351.issue13657@psf.upfronthosting.co.za>
2013-05-19 22:05:19alex.rodaslinkissue13657 messages
2013-05-19 22:05:19alex.rodascreate