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

Jeff Epler jepler at unpythonic.net
Wed May 22 14:53:49 EDT 2002


On Wed, May 22, 2002 at 01:13:06PM -0500, Michael Bauers wrote:
> Is there a reason for this sort of inconsistency?

Yes.  But nobody will tell you why.  It's a sekrit.

Jeff
PS Part of the reason is that tuples and strings historically had
no methods, but it was still deemed useful to be able to determine
their length.
PPS This has been discussed before...





More information about the Python-list mailing list