A Python 3000 Question
Thomas Wittek
mail at gedankenkonstrukt.de
Tue Oct 30 04:06:42 EDT 2007
Bjoern Schliessmann:
> Is there any particular reason why it should be a method?
>
> [..]
>
> To make a long story short: Most methods do specific things with
> objects; but len is a common function to get a simple property of
> an object.
You said it. IMHO it really could be a *property*, say `object.len`.
It doesn't do something on the object, but rather gives some information
about its "state".
--
Thomas Wittek
Web: http://gedankenkonstrukt.de/
Jabber: streawkceur at jabber.i-pobox.net
GPG: 0xF534E231
More information about the Python-list
mailing list