: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
> >
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?
> >
> >
: [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
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):
> >
> >
>>> > 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
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
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?
>
>
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
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