[Twisted-Python] SMTP patch

Glyph Lefkowitz glyph at twistedmatrix.com
Fri May 23 17:20:25 EDT 2003

On Friday, May 23, 2003, at 12:55 PM, Jp Calderone wrote:

>> 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.  ;)

This reminds me of a story:


It is easy to write code that is insanely slow in Python, but we should 
be aware of that and _not do it_, regardless of how cute 'in' looks. :)

More information about the Twisted-Python mailing list