Why does Python mix OO concepts and non OO concepts for operation s on basic types?
Steve Holden
sholden at holdenweb.com
Sun May 26 21:06:18 EDT 2002
"Jarno J Virtanen" <jajvirta at cc.helsinki.fi> wrote ...
> Wed, 22 May 2002 13:13:06 -0500 Michael Bauers wrote:
> >
> > Why do you say x = []; x.append('a'), but get the length with len(a) ?
> >
> > Is there a reason for this sort of inconsistency?
>
> why not check the FAQ?
>
> http://www.python.org/cgi-bin/faqw.py?req=all#6.5
I have updated this entry, and would welcome any feedback about the
changes -- it's just a first attempt, and I was trying not to be too
defensive about the inconsistencies. After all, history is important even in
technologies.
regards
Steve
--
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------
More information about the Python-list
mailing list