the print statement

Terry Reedy tjreedy at udel.edu
Sun May 7 03:37:41 CEST 2006


<mirandacascade at yahoo.com> wrote in message 
news:1146960978.564533.59730 at j73g2000cwa.googlegroups.com...
> bit of an understanding of the \xhh pattern.  It's still unclear to me,
> however, how one can go from the \x92 pattern and arrive at the
> apostrophe character.  Is \x92 the apostrophe character in another
> character set?  If so, which character set?

What you see with "print '\x92'" and indeed any value above '\x7F' is 
situation-dependent.  On my WinXP system, typing that in the Python command 
window gives the AE ligature (ie, the two letters joined together).  Doing 
the same in the IDLE shell window gives an accent mark similar to ` but 
slanting the other way.  An apostrophe ' in the same window is vertical, so 
they are different characters.

Terry Jan Reedy






More information about the Python-list mailing list