[Twisted-Python] SMTP patch

Glyph Lefkowitz glyph at twistedmatrix.com
Fri May 23 15:20:25 MDT 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:

	http://www.ai.mit.edu/docs/articles/good-news/subsubsection3.2.2.4.html

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