[Python-Dev] Shouldn't I be able to print Unicode objects?

Skip Montanaro skip@pobox.com (Skip Montanaro)
Tue, 5 Jun 2001 15:01:47 -0500


    Michael> Well, what would you have 

    >>>> print u"\N{DEGREE SIGN}"

    Michael> (or equivalently

    Michael> str(u"\N{DEGREE SIGN}")

    Michael> since we're eventually going to have to stuff an 8-bit string
    Michael> down stdout) do?

How about if print calls the .encode("latin1") method for me it gets an
ASCII encoding error?  If "latin1" isn't a reasonable default choice, it
could pick an encoding based on the current locale.

    Michael> I don't think

    >>>> print u"\N{DEGREE SIGN}"                 
    Michael> u'\xb0'

    Michael> is really an option.

I agree.  I'd like to see a little circle.

    Michael> This is old news.  It must have been discussed here before 1.6,
    Michael> I'd have thought.

Perhaps, but I suspect many people suffered from glazing over of the eyes
reading all that the messages exchanged about Unicode arcana.  I know I did.

Skip