Metaclass hierarchy? (was Re: Superclasses)
Moshe Zadka
moshez at math.huji.ac.il
Fri Feb 18 09:32:24 EST 2000
On Fri, 18 Feb 2000, Gordon McMillan wrote:
> > .... If "T" is a
> > class object, "dir(T)" does not show "__bases__" as a field. What is the
> > lookup rule for getting fields from class objects? Is it similar to
> > getting fields from instances (where the interpreter goes up the class
> > hierarchy until it finds what you're looking for)? If so, what hierarchy
> > is being examined?
>
> See \Doc\ref\types.html.
Or, if you're fortunate enough to be using a Real OS, try
string.replace(..., '\\', '/')
--
Moshe Zadka <mzadka at geocities.com>.
INTERNET: Learn what you know.
Share what you don't.
More information about the Python-list
mailing list