"ABO" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> There are other "optimisations" that could be applied that make this
> code faster but uglier. For example, putting another "while True: loop
> inside the try block to avoid the try block setup each iteration.

In CPython, 'setting up' try-blocks is (intentionally) very fast, perhaps 
as fast or faster than one interation loop.

tjr



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to