Limits on number of classes?

Kamilche klachemin at home.com
Mon Jun 14 06:43:30 CEST 2004


"Tim Peters" <tim.one at comcast.net> wrote in message news:<mailman.920.1087147355.6949.python-list at python.org>...

> If your inheritance chain is a thousand levels deep, then (a) it's going to
> take a long time to resolve a method defined in the base class when accessed
> from an instance of the most-derived class; and, (b) you're insane <wink>.

No, just hundreds of shallow classes. I'm using classes as a
'prototype' for objects in memory, and there will be a million or so
of those... I was just hoping that I could have hundreds of classes,
without suffering a bad speed hit.



More information about the Python-list mailing list