On May 6, 1:00 pm, hdante <[EMAIL PROTECTED]> wrote:
> On May 6, 12:28 am, [EMAIL PROTECTED] wrote:
>
>
>
>
>
>
>
> > There's a process decorator to functions in a module.
>
> > [supposes]
>
> > @process
> > def datafile( processdict ):
> > processdict.modify( )
> > op= yield
> > op.call(
On May 6, 12:28 am, [EMAIL PROTECTED] wrote:
>
> There's a process decorator to functions in a module.
>
> [supposes]
>
> @process
> def datafile( processdict ):
> processdict.modify( )
> op= yield
> op.call( ) in processdict
> # op.call( ) in namespace
>
> More simply:
>
> @process
> d
On May 5, 1:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On May 4, 1:11 pm, [EMAIL PROTECTED] wrote:
>
> > There is no such thing as a 'frame' per se in C; byte code is
> > integral. As there is no such thing as suspended state without
> > frames, and no such thing as generators without
On May 4, 1:11 pm, [EMAIL PROTECTED] wrote:
> There is no such thing as a 'frame' per se in C; byte code is
> integral. As there is no such thing as suspended state without
> frames, and no such thing as generators without suspended state.
Well, for implementing generators there are alternatives
On Mon, 2008-05-05 at 10:08 -0700, [EMAIL PROTECTED] wrote:
> At some point, code goes "on" and "off" the processor, which knowledge
> I do owe to spending money. Thus, if the group news is a localcy
> (other dimension of currency), that's bounce check the house dollar.
> What do [second person pl
On May 5, 12:28 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 05 May 2008 00:09:02 -0300, hdante <[EMAIL PROTECTED]> escribió:
>
>
>
>
>
> > Isn't this guy a bot ? :-) It's learning fast. I believe there is a
> > "frame" in C, composed of its stack and globals. For generators in C,
En Mon, 05 May 2008 00:09:02 -0300, hdante <[EMAIL PROTECTED]> escribió:
> Isn't this guy a bot ? :-) It's learning fast. I believe there is a
> "frame" in C, composed of its stack and globals. For generators in C,
> you may look for "coroutines". For example, see:
>
> http://www.chiark.greenend.
A 'generator function' -- a function that when called returns a generator
object, a specific type of iterator, is a rather Python specific concept.
Better to think, I think, in terms of writing an iterator 'class' (in C,
struct with associated function). Looking at the implementation of two o
On May 4, 8:11 am, [EMAIL PROTECTED] wrote:
> On May 4, 12:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > En Sun, 04 May 2008 01:08:34 -0300, Marc 'BlackJack' Rintsch <[EMAIL
> > PROTECTED]> escribió:
>
> > > On Sat, 03 May 2008 16:39:43 -0700, castironpi wrote:
>
> > >> I'm act
En Sun, 04 May 2008 08:11:35 -0300, <[EMAIL PROTECTED]> escribió:
> On May 4, 12:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>> En Sun, 04 May 2008 01:08:34 -0300, Marc 'BlackJack' Rintsch <[EMAIL
>> PROTECTED]> escribió:
>>
>> > On Sat, 03 May 2008 16:39:43 -0700, castironpi wrote:
>
On May 4, 12:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Sun, 04 May 2008 01:08:34 -0300, Marc 'BlackJack' Rintsch <[EMAIL
> PROTECTED]> escribió:
>
> > On Sat, 03 May 2008 16:39:43 -0700, castironpi wrote:
>
> >> I'm actually curious if there's a way to write a generator function
>
On Sun, May 4, 2008 at 1:39 AM, <[EMAIL PROTECTED]> wrote:
> I'm actually curious if there's a way to write a generator function
> (not a generator expression) in C, or what the simplest way to do it
> is... besides link the Python run-time.
> --
Here's the itertools C code:
http://svn.python
En Sun, 04 May 2008 01:08:34 -0300, Marc 'BlackJack' Rintsch <[EMAIL
PROTECTED]> escribió:
> On Sat, 03 May 2008 16:39:43 -0700, castironpi wrote:
>
>> I'm actually curious if there's a way to write a generator function
>> (not a generator expression) in C, or what the simplest way to do it
>> is
On Sat, 03 May 2008 16:39:43 -0700, castironpi wrote:
> I'm actually curious if there's a way to write a generator function
> (not a generator expression) in C, or what the simplest way to do it
> is... besides link the Python run-time.
The reference implementation of Python is written in C, so o
I'm actually curious if there's a way to write a generator function
(not a generator expression) in C, or what the simplest way to do it
is... besides link the Python run-time.
--
http://mail.python.org/mailman/listinfo/python-list
15 matches
Mail list logo