Some basic newbie questions...
Grant Edwards
grante at visi.com
Thu Dec 28 12:27:37 EST 2006
On 2006-12-28, jonathan.beckett <jonathan.beckett at gmail.com> wrote:
> I'm just finding it a bit weird that some of the built in functions are
> static, rather than methods of objects (such as len() being used to
> find the length of a list).
Well, they actually are methods of objects (at least they are
now -- maybe they didn't used to be).
len(foo) is just syntactic sugar for foo.__len__()
I think.
--
Grant Edwards grante Yow! Yow! STYROFOAM...
at
visi.com
More information about the Python-list
mailing list