Use of Unicode in Python 2.5 source code literals

Uncle Bruce bruce306 at rogers.com
Sun May 3 10:26:59 EDT 2009


On May 3, 7:37 am, Matt Nordhoff <mnordh... at mattnordhoff.com> wrote:
> Uncle Bruce wrote:
<snip>
> --

I think I've figured it out!

What I was trying to do was to enter the literal strings directly into
the IDLE interpreter.  The IDLE interpreter will not accept high
codepoints directly.

However, when I put a defined function in a separate file with high
codepoints, IDLE processes them just fine!  display produced the
expected Hex strings, and Print displayed the correct characters.

Success!



More information about the Python-list mailing list