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 jmfauth
Recipients jmfauth
Date 2009-03-24.19:31:59
SpamBayes Score 5.5819514e-06
Marked as misclassified No
Message-id <1237923122.0.0.0658736950329.issue5556@psf.upfronthosting.co.za>
In-reply-to
Content
A few hours ago I sent a comment to the issue #4626. I didn't notice the
issue was closed. So I repeat it here. I'm interested in comments
because I have the feeling it is still a pending annoying isssue.

---

I'm glad to have discovered this topic. I bumped into something similar
when I toyed with an interactive interpreter.

from code import InteractiveInterpreter

ii = InteractiveInterpreter()
source = ...
ii.runsource(source)

What should be the encoding and/or the type (str, bytes) of the "source"
string? Taking into account the encoding of the script which contains
this code, I have the feeling there is always something going wrong,
this can be a "non ascii" char in the source (encoded in utf-8!) or the
interactive interpreter does not accept very well a byte string
representing a utf-8 encoded string.

IDLE is not suffering from this. Its interactive interpreter is somehow
receiving "ucs-2 ready string" from tkinter.

I'm a little bit confused here (win2k, winXP sp2, Python 3.0.1).
History
Date User Action Args
2009-03-24 19:32:02jmfauthsetrecipients: + jmfauth
2009-03-24 19:32:01jmfauthsetmessageid: <1237923122.0.0.0658736950329.issue5556@psf.upfronthosting.co.za>
2009-03-24 19:32:00jmfauthlinkissue5556 messages
2009-03-24 19:31:59jmfauthcreate