[issue22995] Restrict default pickleability
Changes by Scott Kitterman <skl...@kitterman.com>: -- nosy: +kitterma ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22995> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11492] email.header.Header doesn't fold headers
Scott Kitterman skl...@kitterman.com added the comment: Not so fast ... I may have done this wrong, but I get: print(Header(hdrin,maxlinelen=78)) Received: from mailout00.controlledmail.com (mailout00.controlledmail.com [72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5 for b...@kitterman.com; Sun, 13 Mar 2011 23:46:05 -0400 (EDT) all in one line with python3.2, so maxlinelen doesn't appear to do anything. With python2.7 it seems to when invoked that way: Python 2.7.1+ (r271:86832, Mar 24 2011, 00:39:14) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. from email.header import Header hdrin = 'Received: from mailout00.controlledmail.com (mailout00.controlledmail.com [72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5 for b...@kitterman.com; Sun, 13 Mar 2011 23:46:05 -0400 (EDT)' print(Header(hdrin)) Received: from mailout00.controlledmail.com (mailout00.controlledmail.com [72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5 for b...@kitterman.com; Sun, 13 Mar 2011 23:46:05 -0400 (EDT) print(Header(hdrin, maxlinelen=30)) Received: from mailout00.controlledmail.com (mailout00.controlledmail.com [72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5 for b...@kitterman.com; Sun, 13 Mar 2011 23:46:05 -0400 (EDT) -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11492 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11492] email.header.Header doesn't fold headers
New submission from Scott Kitterman skl...@kitterman.com: Header folding is very different (non-existent as far as I've found so far) in Python3. Here's a short example: #!/usr/bin/python # -*- coding: ISO-8859-1 from email.header import Header hdrin = 'Received: from mailout00.controlledmail.com (mailout00.controlledmail.com [72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5 for b...@kitterman.com; Sun, 13 Mar 2011 23:46:05 -0400 (EDT)' print(Header(hdrin)) With python2.6 the output is: Received: from mailout00.controlledmail.com (mailout00.controlledmail.com [72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5 for b...@kitterman.com; Sun, 13 Mar 2011 23:46:05 -0400 (EDT) With python3.1 or 3.2 the output is one line: Received: from mailout00.controlledmail.com (mailout00.controlledmail.com [72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5 for b...@kitterman.com; Sun, 13 Mar 2011 23:46:05 -0400 (EDT) This makes it very difficult to write header processing code that works for both Python2 and Python3 even if one can fold headers at all in Python3. -- components: None messages: 130793 nosy: kitterma priority: normal severity: normal status: open title: email.header.Header doesn't fold headers ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11492 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11414] Add import fix for email.Message
New submission from Scott Kitterman skl...@kitterman.com: email.Message was dropped in python3. from email.Message import Message now fails. Changing email.Message to email.message seems to be all that's needed. -- components: 2to3 (2.x to 3.0 conversion tool) messages: 130179 nosy: kitterma priority: normal severity: normal status: open title: Add import fix for email.Message ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11414] Add import fix for email.Message
Scott Kitterman skl...@kitterman.com added the comment: Agreed, but email.Message was never marked deprecated so there's likely old code out there that's never been updated (which is how I ran into this). This would be, I think, a very low risk transformation to apply. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11414 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7711] csv error name incorrect
New submission from Scott Kitterman skl...@kitterman.com: Using the csv module I encountered an ASCII NUL in a file and got this error: _csv.Error: line contains NULL byte According to the documentation ( http://docs.python.org/library/csv.html#module-contents ) it should be csv.Error:. Attempting to trap the error using try:/except _csv.Error: does not work. It needs to be except csv.Error:. -- components: None messages: 97864 nosy: kitterma severity: normal status: open title: csv error name incorrect type: behavior versions: Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7711 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com