[Python-Dev] Stackless Python

Aahz aahz at pythoncraft.com
Mon Jan 19 19:02:14 EST 2004


On Mon, Jan 19, 2004, Eric Mathew Hopper wrote:
>
> I want to right the code so that it will work when there is no guarantee
> that I'll have an entire message before I start decoding it.  This means
> the parser may have have to stop at any random point in time, and then
> be restarted again when more data is available.  I see no way to do this
> without continuations, or threads, and I refuse to use threads for
> something like this.

Python 2.2 added generators that likely can handle what you're trying to
do.  However, python-dev is not the place to get help on this subject;
please use comp.lang.python instead.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

A: No.
Q: Is top-posting okay?



More information about the Python-Dev mailing list