I'm newish to Python, so this might be way off-base, but I think it
this might help: Allen Downey explains in "Think Python" that <i>"the syntax of a function call suggests that the function is the active agent."</i>
So you're calling the function len() and telling it you have an object
for it to measure. By contrast, method invocations suggest that the
objects are the active agents. Python syntax does not always follow
this implicit logic, but I think it makes sense here.<br><br><div class="gmail_quote">On Tue, Jan 27, 2009 at 5:30 PM, Tobiah <span dir="ltr"><<a href="mailto:toby@tobiah.org">toby@tobiah.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Just out of curiosity, why was len() made to<br>
be it's own function?  I often find myself<br>
typing things like my_list.len before I<br>
catch myself.<br>
<br>
Thanks,<br>
<br>
Toby<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>