[issue11352] Update cgi module doc
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: -pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7562] Custom order for the subcommands of build
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: +pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10904] PYTHONIOENCODING is not in manpage
New submission from Peter Kleiweg pklei...@xs4all.nl: 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 in manpage versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10904 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10904] PYTHONIOENCODING is not in manpage
Peter Kleiweg pklei...@xs4all.nl 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, and they both have the variable in the manpage. I'm sorry for the inconveniance. -- resolution: - out of date status: open - closed versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10904 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Peter Kleiweg pklei...@xs4all.nl 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 means of sys.stdin.detach() The cgi module is used to handle form data and uploaded files. But the resulting page is usually written by the main program or another module, using sys.stdout -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10841] binary stdio
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: +pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10841] binary stdio
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: -pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Peter Kleiweg pklei...@xs4all.nl added the comment: Why not simply: fp = sys.stdin.detach() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Peter Kleiweg pklei...@xs4all.nl 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 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: +pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1685453] email package should work better with unicode
Peter Kleiweg pklei...@xs4all.nl 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, us-ascii, some iso-8859 charset, or utf-8, whatever fits. Python 3.1.1 (r311:74480, Oct 2 2009, 11:50:52) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type help, copyright, credits or license for more information. from email.mime.text import MIMEText text = 'H\u00e9' msg = MIMEText(text, 'plain', 'iso-8859-1') print(msg.as_string()) Content-Type: text/plain; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable H=E9 msg = MIMEText(text, 'plain', 'utf-8') Traceback (most recent call last): File /my/opt/Python-3/lib/python3.1/email/message.py, line 269, in set_charset cte(self) TypeError: 'str' object is not callable During handling of the above exception, another exception occurred: Traceback (most recent call last): File stdin, line 1, in module File /my/opt/Python-3/lib/python3.1/email/mime/text.py, line 30, in __init__ self.set_payload(_text, _charset) File /my/opt/Python-3/lib/python3.1/email/message.py, line 234, in set_payload self.set_charset(charset) File /my/opt/Python-3/lib/python3.1/email/message.py, line 271, in set_charset self._payload = charset.body_encode(self._payload) File /my/opt/Python-3/lib/python3.1/email/charset.py, line 380, in body_encode return email.base64mime.body_encode(string) File /my/opt/Python-3/lib/python3.1/email/base64mime.py, line 94, in body_encode enc = b2a_base64(s[i:i + max_unencoded]).decode(ascii) TypeError: must be bytes or buffer, not str