Properties relevant to finding what class supplies a methodFor my own future reference if nothing else, here's some properties relevant to finding what superclass supplies a method: On
(Because the MRO varies by class, you need both the real class of the object and the current class.) Unbound methods from Python classes show up as type 'unbound method'
in Some methods from builtin classes, such as Other methods from builtin classes, such as Fortunately you can tell the three types of objects apart based on what attribute they have, because nothing has more than one of them (so far; this is where I start to think that this is fishing in the implementation defined waters). |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |