What is not objects in Python?
greg at cosc.canterbury.ac.nz
Fri Oct 3 09:10:27 CEST 2008
Gabriel Genellina wrote:
> Had Python used the more generic size and __size__ from the beginning,
> we'd be all happy now :)
Not necessarily -- len is slightly shorter, and more
comfortable to type on a qwerty keyboard.
But in any case, size-likers have an easy solution:
size = len
(BTW, try doing that with the x.len() notation!)
But it's too late to change things.
More information about the Python-list