Attack a sacred Python Cow

Jordan jordanrastrick at gmail.com
Thu Jul 24 05:58:26 EDT 2008


On Jul 24, 7:40 pm, Torsten Bronger <bron... at physik.rwth-aachen.de>
wrote:
> Hallöchen!
>
> Bruno Desthuilliers writes:
> > [...]
>
> > How would you handle this case with an implicit 'self' :
>
> > class Foo(object):
> >    pass
>
> > def bar(self):
> >    print self
>
> > Foo.bar = bar
>
> Just like this.  However, the compiler could add "self" to
> non-decorated methods which are defined within "class".
>
> Tschö,
> Torsten.
>
> --
> Torsten Bronger, aquisgrana, europa vetus
>                    Jabber ID: torsten.bron... at jabber.rwth-aachen.de

Yeah, forgot what I said, Torsten's reply is much better :-)



More information about the Python-list mailing list