Re: [Python-Dev] PEP 3144: IP Address Manipulation Library for the Python Standard Library

2009-08-19 Thread Tino Wildenhain
Peter Moody wrote: On Wed, Aug 19, 2009 at 6:47 AM, Tino Wildenhain wrote: Antoine Pitrou wrote: Le Tue, 18 Aug 2009 13:00:06 -0700, Peter Moody a écrit : Howdy folks, I have a first draft of a PEP for including an IP address manipulation library in the python stdlib. It seems like there are

Re: [Python-Dev] PEP 3144: IP Address Manipulation Library for the Python Standard Library

2009-08-19 Thread Tino Wildenhain
Antoine Pitrou wrote: Le Tue, 18 Aug 2009 13:00:06 -0700, Peter Moody a écrit : Howdy folks, I have a first draft of a PEP for including an IP address manipulation library in the python stdlib. It seems like there are a lot of really smart folks with some, ahem, strong ideas about what an IP ad

Re: [Python-Dev] [Python-ideas] Proposed addtion to urllib.parse in 3.1 (and urlparse in 2.7)

2009-04-13 Thread Tino Wildenhain
Hi, Senthil Kumaran wrote: On Mon, Apr 13, 2009 at 5:31 PM, Antoine Pitrou wrote: Say you are filtering or sorting data based on some URL parameters. If the user wants to remove one of those filters, you have to remove the corresponding query parameter. This is a use-case and possibly a hypo

Re: [Python-Dev] wait time [was: Ext4 data loss]

2009-03-12 Thread Tino Wildenhain
Jim Jewett wrote: On 3/12/09, "Martin v. Löwis" wrote: It is starting to look as though flush (and close?) should take an optional wait parameter, to indicate how much re-assurance you're willing to wait for. Unfortunately, such a thing would be unimplementable on most of today's operating s

Re: [Python-Dev] PEP 3142: Add a "while" clause to generator expressions

2009-01-22 Thread Tino Wildenhain
Nick Coghlan wrote: Tino Wildenhain wrote: g=(i for i in xrange(1000))[2:5] g.next() # wrapper would now step 2 times w/o yield and 1 with yield 2 g.next() 3 g.next() 4 g.next() Traceback (most recent call last): File "", line 1, in StopIteration as expected - this could b

Re: [Python-Dev] PEP 3142: Add a "while" clause to generator expressions

2009-01-22 Thread Tino Wildenhain
Hi, Gerald Britton wrote: The sieve is just one example. The basic idea is that for some infinite generator (even a very simple one) you want to cut it off after some point. As for the number of characters, I spelled lambda incorrectly (left out a b) and there should be a space after the colon

Re: [Python-Dev] [Zope-dev] Syntax error in python2.6

2008-07-21 Thread Tino Wildenhain
Bristow Thankachan wrote: Hi everybody, During the porting of Zope2 to Python2.6, I am stuck with a syntax error in the module AccessControl, which is given below. def reorder(s, with=None, without=()): ^ SyntaxError: invalid syntax in line 56 of /home/zope/ztrunk2