Re: call 'the following function' using decorators

2008-02-17 Thread castironpi
On Feb 15, 7:54 pm, [EMAIL PROTECTED] wrote: > > > > > I assert it's easier to write: > > > > > > start_new_thread( this_func ) > > > > > def thrA(): > > > > >     normal_suite() > > > > > > than > > > > > > def thrA(): > > > > >     normal_suite() > > > > > start_new_thread( thrA ) > > > > > > If

Re: call 'the following function' using decorators

2008-02-15 Thread castironpi
> > > > I assert it's easier to write: > > > > > start_new_thread( this_func ) > > > > def thrA(): > > > >     normal_suite() > > > > > than > > > > > def thrA(): > > > >     normal_suite() > > > > start_new_thread( thrA ) > > > > > If you don't, stop reading. Nothing beats if forkthread(): but wh

Re: call 'the following function' using decorators

2008-02-12 Thread castironpi
On Feb 12, 12:10 pm, [EMAIL PROTECTED] wrote: > On Feb 12, 12:05 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > > > > > > En Tue, 12 Feb 2008 15:20:32 -0200, <[EMAIL PROTECTED]> escribi�: > > > > I assert it's easier to write: > > > > start_new_thread( this_func ) > > > def thrA(): > > >

Re: call 'the following function' using decorators

2008-02-12 Thread castironpi
On Feb 12, 12:05 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 12 Feb 2008 15:20:32 -0200, <[EMAIL PROTECTED]> escribi�: > > > > > > > I assert it's easier to write: > > > start_new_thread( this_func ) > > def thrA(): > >     normal_suite() > > > than > > > def thrA(): > >     normal

Re: call 'the following function' using decorators

2008-02-12 Thread Gabriel Genellina
En Tue, 12 Feb 2008 15:20:32 -0200, <[EMAIL PROTECTED]> escribi�: > I assert it's easier to write: > > start_new_thread( this_func ) > def thrA(): > normal_suite() > > than > > def thrA(): > normal_suite() > start_new_thread( thrA ) > > If you don't, stop reading. If you do, accomplish it

call 'the following function' using decorators

2008-02-12 Thread castironpi
I assert it's easier to write: start_new_thread( this_func ) def thrA(): normal_suite() than def thrA(): normal_suite() start_new_thread( thrA ) If you don't, stop reading. If you do, accomplish it like this: @decwrap( start_new_thread, Link, ( 2, 3 ) ) def anonfunc( a, b ): p