Peter Kleiweg added the comment:
In Python 3.1.1, email.mime.text.MIMEText accepts an 8-bit charset, but not
utf-8.
I think you should not have to specify a charset. All strings are unicode now,
so I think the package should choose an appropriate charset based on the
characters in the text
Changes by Peter Kleiweg :
--
nosy: +pebbe
___
Python tracker
<http://bugs.python.org/issue4953>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Kleiweg added the comment:
Why not simply:
fp = sys.stdin.detach()
--
___
Python tracker
<http://bugs.python.org/issue4953>
___
___
Python-bugs-list mailin
Peter Kleiweg added the comment:
Using platform-dependant code seems iffy to me. The detach function on
sys.stdin, sys,stdout and sys.stderr is there specifically to switch these
streams from text mode to binary mode. See:
http://docs.python.org/py3k/library/sys.html#sys.stdin
Changes by Peter Kleiweg :
--
nosy: +pebbe
___
Python tracker
<http://bugs.python.org/issue10841>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Peter Kleiweg :
--
nosy: -pebbe
___
Python tracker
<http://bugs.python.org/issue10841>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Kleiweg added the comment:
Pierre Quentel wrote:
- get the binary layer of stdout : out = sys.stdout.detach()
You can't do that! That makes sys.stdout unavaible to the program that is
importing the cgi module.
Cgi should access and process sys.stdin only, as binary by mea
New submission from Peter Kleiweg :
The environment variable PYTHONIOENCODING should be documented in de manpage
--
assignee: docs@python
components: Documentation, IO
messages: 126252
nosy: docs@python, pebbe
priority: normal
severity: normal
status: open
title: PYTHONIOENCODING is not
Peter Kleiweg added the comment:
Ah, I see it's fixed in the latest version.
The variable PYTHONIOENCODING was present at least since Python 2.6.4, but not
documented in the manpage of versions 2.6.4, 2.7 and 3.1.1.
I thought I had recent versions, but I see now versions 2.7.1 and 3.1.3
Changes by Peter Kleiweg :
--
nosy: -pebbe
___
Python tracker
<http://bugs.python.org/issue11352>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Peter Kleiweg :
--
nosy: +pebbe
___
Python tracker
<http://bugs.python.org/issue7562>
___
___
Python-bugs-list mailing list
Unsubscribe:
11 matches
Mail list logo