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

Don Garrett garrett at bgb.cc
Mon Jun 10 20:57:11 EDT 2002


Hans Nowak wrote:
> Besides, while Python is object-oriented, that isn't the only
> paradigm in the language. People coming from a functional
> background may find the len() function more natural than a
> method.
> 
> YMMV,
> 

   That's one thing I don't get. Why wasn't len() added as a member to the 
various types during the recent rework that added so many other members to the 
native types?

-- 
Don Garrett                             http://www.bgb.cc/garrett/
BGB Consulting                                      garrett at bgb.cc




More information about the Python-list mailing list