[Twisted-Python] SMTP patch

Andrew Bennetts andrew-twisted at puzzling.org
Fri May 23 00:53:24 EDT 2003

On Fri, May 23, 2003 at 12:46:09AM -0400, Bob Ippolito wrote:
> On Thursday, May 22, 2003, at 23:02 America/New_York, Jp Calderone 
> wrote:
> >    Interestingly, there was a thread on PyPy-dev on this subject.  I 
> >think I agree with the line of thinking that says "x in y" expresses the
> >intent more accurately and at a higher level than "a <= x < y".  xrange()
> >is a hack though, so I would use range() :)
> Only because in this particular case all valid x are exactly 
> representable by an integer .. there are plenty of x (floats or 
> otherwise) that satisfy a <= x < y that aren't in the set of integers 
> [a, y>
> Personally, I think there should be a hybrid between a list and a 
> generator (kinda like xrange but more magical) returned whenever you do 

I think the word you're looking for is "interval"?


More information about the Twisted-Python mailing list