Re: [Tutor] decorators, __call__ (able) objects

2009-07-15 Thread Vince Spicer
:05 -0700 > > Von: wesley chun > > An: vince spicer , tmatsum...@gmx.net > > CC: Kent Johnson , tutor@python.org > > Betreff: Re: [Tutor] decorators, __call__ (able) objects > > > > >>> > Can some one give, or point to some good examples of how > >

Re: [Tutor] decorators, __call__ (able) objects

2009-07-15 Thread Todd Matsumoto
ce spicer , tmatsum...@gmx.net > CC: Kent Johnson , tutor@python.org > Betreff: Re: [Tutor] decorators, __call__ (able) objects > >>> > Can some one give, or point to some good examples of how @decorators > >>> > work, and __call__ (able) objects? > > > >

Re: [Tutor] decorators, __call__ (able) objects

2009-07-15 Thread Todd Matsumoto
: [Tutor] decorators, __call__ (able) objects > On Wed, Jul 15, 2009 at 7:41 AM, Todd Matsumoto wrote: > > Hi, > > > > Can some one give, or point to some good examples of how @decorators > work, and __call__ (able) objects? > > Decorators: > http://personalpage

Re: [Tutor] decorators, __call__ (able) objects

2009-07-15 Thread vince spicer
agreed much better description, thanks On Wed, Jul 15, 2009 at 1:02 PM, wesley chun wrote: > >>> > Can some one give, or point to some good examples of how @decorators > >>> > work, and __call__ (able) objects? > > > > simple example of calling a class > > > > class myKlass(object): > > > >

Re: [Tutor] decorators, __call__ (able) objects

2009-07-15 Thread wesley chun
>>> > Can some one give, or point to some good examples of how @decorators >>> > work, and __call__ (able) objects? > > simple example of calling a class > > class myKlass(object): > > def __call__(self, *args, **kws): > print "i was called" > > >>> test = myKlass() > >>> test() > i wa

Re: [Tutor] decorators, __call__ (able) objects

2009-07-15 Thread vince spicer
simple example of calling a class class myKlass(object): def __call__(self, *args, **kws): print "i was called" >> test = myKlass() >> test() >> i was called > > > > On Wed, Jul 15, 2009 at 6:33 AM, Kent Johnson wrote: > >> On Wed, Jul 15, 2009 at 7:41 AM, Todd Matsumoto >> wr

Re: [Tutor] decorators, __call__ (able) objects

2009-07-15 Thread vince spicer
simple example of calling a class class myKlass(object): On Wed, Jul 15, 2009 at 6:33 AM, Kent Johnson wrote: > On Wed, Jul 15, 2009 at 7:41 AM, Todd Matsumoto wrote: > > Hi, > > > > Can some one give, or point to some good examples of how @decorators > work, and __call__ (able) objects? > >

Re: [Tutor] decorators, __call__ (able) objects

2009-07-15 Thread Kent Johnson
On Wed, Jul 15, 2009 at 7:41 AM, Todd Matsumoto wrote: > Hi, > > Can some one give, or point to some good examples of how @decorators work, > and __call__ (able) objects? Decorators: http://personalpages.tds.net/~kent37/kk/1.html Kent ___ Tutor mai

[Tutor] decorators, __call__ (able) objects

2009-07-15 Thread Todd Matsumoto
Hi, Can some one give, or point to some good examples of how @decorators work, and __call__ (able) objects? I'm having trouble getting my head around these techniques (concepts). Cheers, T -- Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate für nur 19,99 Euro/mtl.!* http://portal