[Twisted-Python] SMTP patch
Bob Ippolito
bob at redivi.com
Fri May 23 11:08:25 MDT 2003
On Friday, May 23, 2003, at 12:55 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() :)
>>
>> Oops! As you imply, that should've been "200 <= code < 300". I
>> still don't
>> like the idea of constructing 100 integers, even lazily, just to test
>> bounds, though.
>
> Neither do I. Python should optimize it. ;)
I for one would be perfectly happy doing optimization on my own, when
neccessary, if function calls sucked less :)
-bob
More information about the Twisted-Python
mailing list