language design question

Fredrik Lundh fredrik at pythonware.com
Tue Jul 11 04:11:54 EDT 2006


"Bryan" wrote:

>> and how do you make sure that everything subclasses this base class ?
>
> 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?

why should *everything* be forced to have a length ?

</F> 






More information about the Python-list mailing list