On Fri, Mar 16, 2012 at 10:30 PM, Cosmia Luna <cosm...@gmail.com> wrote: > I'm porting my existing work to Python 3.X, but... > > class Foo: > def bar(self): > pass > > mthd = Foo.bar > > assert mthd.im_class is Foo # this does not work in py3k > > So, how can I get a reference to Foo? This is important when writing > decorators,
Could you give an example of such a decorator? Cheers, Chris -- http://mail.python.org/mailman/listinfo/python-list