A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-November/040315.html below:

[Python-Dev] generator/microthread syntax

[Python-Dev] generator/microthread syntax [Python-Dev] generator/microthread syntaxPhillip J. Eby pje at telecommunity.com
Tue Nov 18 19:46:51 EST 2003
At 07:42 PM 11/18/03 -0500, Phillip J. Eby wrote:
>     def spawn(self,thread):
>         stack = [thread]
>         threads.append(stack)

Oops.  That should've been 'self.threads.append(stack)'.  Told you it was 
untested.  :)

There's one other bug, too.  The 'while True' loop in the __iter__ method 
really should be 'while self.threads', or else it'll go into an infinite 
loop when all microthreads have terminated.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4