Skip to search.
python-coro · Coroutines for Python

Group Information

  • Members: 62
  • Category: Python
  • Founded: Oct 26, 1999
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
Messages 6 - 36 of 1960   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
6 Sam Rushing
rushing@... Send Email
Mar 30, 2000
9:27 am
For those of you that haven't already been invited to the python-coro list, please see the info at the bottom on how to join the list if you're interested. ...
7 Christian Tismer
tismer@... Send Email
Mar 30, 2000
12:59 pm
... As a starter and to give you more input, here is Sam's coroutine implementation from last year, with a couple of changes from me. This very simplistic, but...
8 Christian Tismer
tismer@... Send Email
Mar 30, 2000
4:37 pm
A couple of thougts on this... ... To get away from the idea that there is a call at all, I'd propose to think of a client: Something that transfers to me (the...
9 Adams, Ed N
Ed.N.Adams@... Send Email
Mar 30, 2000
7:10 pm
... From: Christian Tismer [mailto:tismer@...] Sent: Thursday, March 30, 2000 8:39 AM To: rushing@... Cc: python-coro@eGroups.com;...
10 Sam Rushing
rushing@... Send Email
Apr 3, 2000
9:04 pm
I was thinking that maybe one way around the problem of initializing a bunch of coroutines that need to be aware of each other would be to use the coroutine...
11 Adams, Ed N
Ed.N.Adams@... Send Email
Apr 3, 2000
9:41 pm
Sam, Good point. So (1) the children, as shown by your "some_function" below, would experience a Creation + Initialization phase (the first work,work), (2) the...
12 Martin Baker
martinb@... Send Email
Apr 3, 2000
9:54 pm
... Just be careful about leaks from cycles. :-) Martin...
13 Ed N Adams
Ed.N.Adams@... Send Email
Apr 3, 2000
10:30 pm
I've just deposited a new folder and some files into the egroup coroutine file area. The folder is "Text Search examples", and it includes an implementation...
14 Sam Rushing
rushing@... Send Email
Apr 7, 2000
8:41 am
I've been mucking with this 'hot potato' demo for a while; trying to work around the init-args problem. It demonstrates multi-arg, multi-return, and the use...
15 Adams, Ed N
Ed.N.Adams@... Send Email
Apr 7, 2000
4:59 pm
I would certainly expect that you'd have to kill the routines. All but one of them most recently resumed the next sibling. The one that discovered a zero...
16 Adams, Ed N
Ed.N.Adams@... Send Email
Apr 7, 2000
5:06 pm
Sam, Not that you asked for it, but...part of my soapbox about coroutines is the ability to express the computation in its most natural form, and the ability ...
17 Adams, Ed N
Ed.N.Adams@... Send Email
Apr 7, 2000
7:40 pm
Sam, Here is an infinitesimally more useful example, called "sort_potato". There are from 3 to 5 coroutines, linked in a ring with 'me.next'. To start with,...
18 Christian Tismer
tismer@... Send Email
Apr 7, 2000
7:45 pm
"Adams, Ed N" wrote: ... Simply compile the source which I sent along today, and you have multi-arg continuations, together with less bugs (and hopefully no...
19 Christian Tismer
tismer@... Send Email
Apr 7, 2000
8:23 pm
Sam Rushing wrote: ... Yes. If you look at iterate.py, things a slightly more elegant. The iterator destructs itsef when the sequence is exhausted. The objects...
20 Sam Rushing
rushing@... Send Email
Apr 8, 2000
3:44 am
... For the I/O-scheduler application, it would be nice if coroutines automatically cleaned themselves up on exit - otherwise you might need some sort of...
21 Christian Tismer
tismer@... Send Email
Apr 8, 2000
7:58 pm
Hi friends, today I wrote a generator class. It should be running at blinding speed. Although it makes use of the convenience of a class, there are no circular...
22 Just van Rossum
just@... Send Email
Apr 8, 2000
8:26 pm
Hi Chris, ... Whoohoo! ... Which seems a sign you might as well use global functions, no? ... So, what would a pythonic version look like? Background: I'm very...
23 Christian Tismer
tismer@... Send Email
Apr 8, 2000
9:18 pm
... Not if I want to have many generators. ... The pythonic version is in a former post to this list. iterate.py is fairly simple, compared to this one, and it...
24 Just van Rossum
just@... Send Email
Apr 8, 2000
11:42 pm
... Eh? There is no difference at all between: class aClass: def aMethod(self, a, b, c): aGlobalFunc(a, b, c) def aGlobalFunc(a, b, c): do stuff with a, b, c ...
25 Just van Rossum
just@... Send Email
Apr 9, 2000
7:58 am
Ok, I'm better now... I foolishly suggested: def foo(): ...codecodecode... return continuation.next() ...more codecodecode!... And Christian replied: [...
26 Sam Rushing
rushing@... Send Email
Apr 9, 2000
8:21 am
... Hey, this just made me flash on some deeply buried memories of BASIC! Maybe using BASIC as a take-off point, we could recapture that moment when we were...
27 Just van Rossum
just@... Send Email
Apr 9, 2000
9:01 am
... That's a great one, too! However, there's one complication not covered by the BASIC analogy, that's still causing me trouble: there appear to be two...
28 Christian Tismer
tismer@... Send Email
Apr 9, 2000
10:07 am
Howdy, ... [global func vs. method that deletes self] Oh-oh. There is some evidence in what you say :-) It is true. As I see myself deleting self in the first ...
29 Christian Tismer
tismer@... Send Email
Apr 9, 2000
10:33 am
... This is an artifact. Frames should not be exposed to the user at all, since frames are an artifact as well. They just happen to play the role of a function...
30 Christian Tismer
tismer@... Send Email
Apr 9, 2000
12:03 pm
Hi Stack-Loosers, Due to Just's correct complaint why I make a method when it is no method, here an improved (gen|it)erator implementation. There is more...
32 Adams, Ed N
Ed.N.Adams@... Send Email
Apr 10, 2000
5:01 pm
... From: Sam Rushing [mailto:rushing@...] Sent: Friday, April 07, 2000 8:44 PM To: python-coro@egroups.com Cc: 'python-coro@eGroups.com' Subject: RE:...
33 Christian Tismer
tismer@... Send Email
Apr 10, 2000
7:48 pm
"Adams, Ed N" wrote: ... Note that I have such features in continuationmodule already. You can set up a continuation that dies automatically after its shot. ...
34 Just van Rossum
just@... Send Email
Apr 11, 2000
1:06 pm
Folks, While reimplementing uthread.py in a completely wicked way (inspired by Chris' Tough Generator example) it occurred to me that the value passing...
35 Christian Tismer
tismer@... Send Email
Apr 11, 2000
3:08 pm
... I could do that. Although at the Moment, I see the return_current() finction instantiation mainly as soemthing that gives very much speed. If we introduce...
36 Just van Rossum
just@... Send Email
Apr 11, 2000
5:23 pm
... That didn't occur to me... But then again, speed is hardly first on my mind... Never mind... ... Good point. [ ... ] ... Erm, this already works: I use it...
Messages 6 - 36 of 1960   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help