Re: Q: The `print' statement over Unicode

2005-05-08 Thread John J. Lee
Jeremy Bowers [EMAIL PROTECTED] writes: On Sat, 07 May 2005 12:10:46 -0400, François Pinard wrote: [Martin von Löwis] François Pinard wrote: Am I looking in the wrong places, or else, should not the standard documentation more handily explain such things? It should, but,

Re: Q: The `print' statement over Unicode

2005-05-08 Thread Jeremy Bowers
On Sun, 08 May 2005 13:46:22 +, John J. Lee wrote: I don't mean to put words into Franois' mouth, but IIRC he managed, for example, GNU tar for some time and, while using some kind of tracking system under the covers, didn't impose it on his users. IMVHO, that was very nice of him, but

Re: Q: The `print' statement over Unicode

2005-05-08 Thread Martin v. Lwis
Jeremy Bowers wrote: Then I'd honor his consistency of belief, but still consider it impolite in general, as asking someone to do tons of work overall to save you a bit is almost always impolite. This is not what he did, though - he did not break the protocol by sending in patches by email

Re: Q: The `print' statement over Unicode

2005-05-07 Thread François Pinard
[Thomas Heller] François Pinard [EMAIL PROTECTED] writes: [...] given file `question.py' with this contents: # -*- coding: UTF-8 -*- texte = unicode(Fran\xe7ois, 'latin1') print type(texte), repr(texte), texte print type(texte), repr(texte), str(texte) doing `python

Re: Q: The `print' statement over Unicode

2005-05-07 Thread Martin v. Löwis
François Pinard wrote: Am I looking in the wrong places, or else, should not the standard documentation more handily explain such things? It should, but, alas, it doesn't. Contributions are welcome. The algorithm to set sys.std{in,out}.encoding is in sysmodule.c:_PySys_Init and

Re: Q: The `print' statement over Unicode

2005-05-07 Thread François Pinard
[Martin von Löwis] François Pinard wrote: Am I looking in the wrong places, or else, should not the standard documentation more handily explain such things? It should, but, alas, it doesn't. Contributions are welcome. My contributions are not that welcome. If they were, the core team

Re: Q: The `print' statement over Unicode

2005-05-07 Thread Martin v. Löwis
François Pinard wrote: My contributions are not that welcome. If they were, the core team would not try forcing me into using robots and bug trackers! :-) Ok, then we need to wait for somebody else to contribute a documentation patch. Thanks. Your kind explanation, above, should make it, as

Re: Q: The `print' statement over Unicode

2005-05-07 Thread Jeremy Bowers
On Sat, 07 May 2005 12:10:46 -0400, Franois Pinard wrote: [Martin von Lwis] Franois Pinard wrote: Am I looking in the wrong places, or else, should not the standard documentation more handily explain such things? It should, but, alas, it doesn't. Contributions are welcome. My

Q: The `print' statement over Unicode

2005-05-04 Thread François Pinard
Hi, people. I hope someone would like to enlighten me. For any application handling Unicode internally, I'm usually careful at properly converting those Unicode strings into 8-bit strings before writing them out. However, this morning, I mistakenly forgot to do so before using one Unicode

Re: Q: The `print' statement over Unicode

2005-05-04 Thread Thomas Heller
François Pinard [EMAIL PROTECTED] writes: Hi, people. I hope someone would like to enlighten me. For any application handling Unicode internally, I'm usually careful at properly converting those Unicode strings into 8-bit strings before writing them out. However, this morning, I