On Friday 16 March 2007 06:52, ammar azif wrote:
> Is generator function similar to multi threading?
Yes, however unlike threads they are more general. They can be used in two
main ways:
* To generate a sequence of values
* To achieve something similar to multithreading, but without using
ammar azif wrote:
> Is generator function similar to multi threading?
Only in that they can be alternative ways to solve the same problem.
Generator functions are similar to co-routines and can be used to create
multiple lightweight tasks. SimPy (http://simpy.sourceforge.net/) is an
example of
Is generator function similar to multi threading?
-
Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tuto