Why does Python mix OO concepts and non OO concepts for operations on basic types?

Bernhard Herzog bh at intevation.de
Thu May 23 06:47:47 EDT 2002


"Terry Reedy" <tjreedy at udel.edu> writes:

> Before 2.2, (1,2,3).len() was not possible.

What does that have to do with 2.2? If the implementers had wanted it,
tuples could have methods in earlier versions as well.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
MapIt!                                           http://www.mapit.de/



More information about the Python-list mailing list