What is not objects in Python?

Lie Ryan lie.1296 at gmail.com
Tue Sep 30 04:01:49 EDT 2008

On Mon, 2008-09-29 at 21:03 -0700, namekuseijin wrote:
> On 28 set, 15:29, process <circularf... at gmail.com> wrote:
> > I have heard some criticism about Python, that it is not fully object-
> > oriented.
> So what?
> > Why isn't len implemented as a str.len and list.len method instead of
> > a len(list) function?
> Because postfix notation sucks.  The natural way of spelling is
> adjective+noun and verb+predicate.  That's one of the reasons I like
> Lisp better than Python.
> --
> http://mail.python.org/mailman/listinfo/python-list

Actually str.len and len(str) is just like saying "the string's length"
and "the length of the string". There is no difference between the two
except for personal preference. (I am no linguist-- not even a native
speaker of English --but I think there is a subtle difference on
emphasis, "the string's length" emphasizes on the length being string's
property, while "the length of the string" emphasizes on the length
itself, am I correct?)

More information about the Python-list mailing list