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 tebeka
Recipients tebeka
Date 2011-06-24.22:45:07
SpamBayes Score 0.0007189521
Marked as misclassified No
Message-id <1308955507.7.0.876307843842.issue12402@psf.upfronthosting.co.za>
In-reply-to
Content
Consider the following code:
    import code

    class Console(code.InteractiveConsole):
        def write(self, data):
            print("DATA: {0}".format(data))

    c = Console()
    c.interact()

Then enter "1" at the prompt. The output will be 1 (and not DATA: 1).
If you create an error (such as 1/0), then the error lines will be prefixed by DATA.
History
Date User Action Args
2011-06-24 22:45:07tebekasetrecipients: + tebeka
2011-06-24 22:45:07tebekasetmessageid: <1308955507.7.0.876307843842.issue12402@psf.upfronthosting.co.za>
2011-06-24 22:45:07tebekalinkissue12402 messages
2011-06-24 22:45:07tebekacreate