Code that ought to run fast, but can't due to Python limitations.
Aahz
aahz at pythoncraft.com
Sun Jul 5 11:08:23 EDT 2009
In article <mailman.2639.1246802753.8015.python-list at python.org>,
Hendrik van Rooyen <mail at microcorp.co.za> wrote:
>
>But wait - maybe if he passes an iterator around - the equivalent of
>for char in input_stream... Still no good though, unless the next call
>to the iterator is faster than an ordinary python call.
Calls to iterators created by generators are indeed faster than an
ordinary Python call, because the stack frame is already mostly set up.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"as long as we like the same operating system, things are cool." --piranha
More information about the Python-list
mailing list