> Anyway, if you have a blocking operation, the only solution is to use
> a thread or a separate process.
>
> Michele Simionato
That's what I thought. It was in fact rather obvious, but I wanted to
be sure that I hadn't overlooked some arcane possibility (ex. with the
use of exceptions or somet
On Apr 23, 8:26 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Wed, 23 Apr 2008 10:53:03 -0700 (PDT), Michele Simionato:
> You could have #2. It's a trivial variation of sending a value. For
> example,
>
> http://twistedmatrix.com/trac/browser/trunk/twisted/internet/defer.py...
>
> Jean-
On Wed, 23 Apr 2008 10:53:03 -0700 (PDT), Michele Simionato <[EMAIL PROTECTED]>
wrote:
On Apr 23, 4:17 pm, [EMAIL PROTECTED] wrote:
I would really like to know more about python 2.5's new generator
characteristics that make them more powerful and analogous to
coroutines. Is it possible for inst
On Apr 23, 4:17 pm, [EMAIL PROTECTED] wrote:
> I would really like to know more about python 2.5's new generator
> characteristics that make them more powerful and analogous to
> coroutines. Is it possible for instance to employ them in situations
> where I would normally use a thread with a blocki
On Wed, 23 Apr 2008 07:17:46 -0700 (PDT), [EMAIL PROTECTED] wrote:
I would really like to know more about python 2.5's new generator
characteristics that make them more powerful and analogous to
coroutines. Is it possible for instance to employ them in situations
where I would normally use a thre
[EMAIL PROTECTED] schrieb:
I would really like to know more about python 2.5's new generator
characteristics that make them more powerful and analogous to
coroutines. Is it possible for instance to employ them in situations
where I would normally use a thread with a blocking I/O (or socket)
opera
On Mar 16, 9:24 am, Matt Nordhoff <[EMAIL PROTECTED]> wrote:
> mpc wrote:
> > def concatenate(sequences):
> > for seq in sequences:
> > for item in seq:
> > yield item
>
> You should check out itertools.chain(). It does this. You call it like
> "chain(seq1, seq2, ...)" inste
mpc wrote:
> def concatenate(sequences):
> for seq in sequences:
> for item in seq:
> yield item
You should check out itertools.chain(). It does this. You call it like
"chain(seq1, seq2, ...)" instead of "chain(sequences)" though, which may
be a problem for you.
The res
mpc wrote:
> I am trying to write a while loop that will iterate over generators to
> capture all the headers of FFCache directories. However, the
> generators embedded within the argument of another generator do not
> seem to re-initiate. the example below loops through and initiates the
> genera
On 15 Mar, 21:35, mpc <[EMAIL PROTECTED]> wrote:
> generator embedded in the argument only once. Can anyone explain while
> the generator will not re-initiate, and suggest a simple fix?
I am not sure what you are trying to do, but it seems a bit confused.
>>> def concat(seq):
for s in
10 matches
Mail list logo