Re: [Tutor] Is generator function similar to multi threading?

2007-03-16 Thread Michael Sparks
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

Re: [Tutor] Is generator function similar to multi threading?

2007-03-16 Thread Kent Johnson
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

[Tutor] Is generator function similar to multi threading?

2007-03-15 Thread ammar azif
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