Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5137

Re: Py3k,email header handling

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '3.2': 0.07; 'terry': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'pm,': 0.11; 'wrote:': 0.14; '3.0)': 0.16; 'anymore.': 0.16; 'reedy': 0.16; 'subject:Py3k': 0.16; 'subject:handling': 0.16; '(or': 0.22; 'jan': 0.22; 'header:In-Reply-To:1': 0.22; 'changed': 0.27; 'query': 0.29; 'improvements': 0.31; 'to:addr:python-list': 0.32; 'done,': 0.33; 'header:X-Complaints-To:1': 0.34; 'there': 0.35; 'header:User-Agent:1': 0.35; 'module.': 0.35; 'widely': 0.35; 'some': 0.37; 'should': 0.37; 'run': 0.37; 'steven': 0.38; 'strings': 0.38; 'received:org': 0.38; 'errors': 0.39; 'to:addr:python.org': 0.39; 'header:Mime-Version:1': 0.39; 'how': 0.39; 'header:Received:5': 0.40; 'results': 0.61; 'favour': 0.68; 'subject:,': 0.78; '12:27': 0.84; 'radically': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Py3k,email header handling
Date Wed, 11 May 2011 13:56:16 -0400
References <iqdftv$age$1@speranza.aioe.org> <4dca92b1$0$29980$c3e8da3$5496439d@news.astraweb.com> <iqedda$p9f$1@speranza.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host rain.gmane.org
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10
In-Reply-To <iqedda$p9f$1@speranza.aioe.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1418.1305136589.9059.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 82.94.164.166
X-Trace 1305136589 news.xs4all.nl 81475 [::ffff:82.94.164.166]:59997
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5137

Show key headers only | View raw


On 5/11/2011 12:27 PM, TheSaint wrote:
> Steven D'Aprano wrote:
>
>> Before you re-write it, you should run 2to3 over it and see how much it
>> can do automatically:
>
> Widely done, only the results from some query has radically changed on
> favour of unicode. Errors raising about results which are not strings
> anymore.

Make sure you use 3.2 and not 3.1 (or 3.0) as there were improvements to 
the email module.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Py3k,email header handling TheSaint <nobody@nowhere.net.no> - 2011-05-11 16:04 +0800
  Re: Py3k,email header handling Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-11 13:44 +0000
    Re: Py3k,email header handling TheSaint <nobody@nowhere.net.no> - 2011-05-12 00:27 +0800
      Re: Py3k,email header handling Terry Reedy <tjreedy@udel.edu> - 2011-05-11 13:56 -0400

csiph-web