Listing subtypes

Ben Finney bignose+hates-spam at
Thu Nov 29 02:09:44 CET 2007

"Diez B. Roggisch" <deets at> writes:

> Ben Finney schrieb:
> > A class knows its parents; it doesn't know its children. (Or, in
> > other words, children need to know who their parents are, but
> > aren't required to notify their parents about anything.)
> Not right. These special children are under a more demanding
> goverment.
> [...]
> print A.__subclasses__()

Thanks. I've now learned my recommended daily dosage of one new thing.

 \     "Unix is an operating system, OS/2 is half an operating system, |
  `\       Windows is a shell, and DOS is a boot partition virus."  -- |
_o__)                                                  Peter H. Coffin |
Ben Finney

More information about the Python-list mailing list