Re: Resolving declaring class of a method at runtime

2007-11-16 Thread Janne Härkönen
On Nov 16, 2007 10:51 PM, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Fri, 16 Nov 2007 19:02:25 +0200, Janne Härkönen > wrote: > > >> X is an "old style" class. Most people probably shouldn't use old style > >> classes, for various rea

Re: Resolving declaring class of a method at runtime

2007-11-16 Thread Janne Härkönen
On Nov 15, 2007 11:07 PM, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Thu, 15 Nov 2007 13:01:27 +0200, Janne Härkönen > wrote: > > Have you tried looking at dir(TheClass) to see what it lists? This is the first thing I did, but it shows both the inherited and own meth

Resolving declaring class of a method at runtime

2007-11-15 Thread Janne Härkönen
Hello, Is there a simple way to resolve declaring class of a method at runtime ? Consider this simple example: $ python Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin Type "help", "copyright", "credits" or "license" for more in