Fredrik Lundh wrote: > Bryan wrote: > >> could you get the same result by putting these methods in base > > class object that everything subclasses? > > and how do you make sure that everything subclasses this base class ? > > </F> >
in this hypothetical case, i was assuming len() would be put in object and every class subclasses object implicitly or explicitly (ie, new style classes only). if it was done that way, would len(obj) == obj.len() in all cases? bryn -- http://mail.python.org/mailman/listinfo/python-list