[Python-Dev] functions vs methods (was Re: trunc()) (original) (raw)
Guido van Rossum guido at python.org
Sun Jan 27 22:27:49 CET 2008
- Previous message: [Python-Dev] functions vs methods (was Re: trunc())
- Next message: [Python-Dev] functions vs methods (was Re: trunc())
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jan 27, 2008 12:53 PM, Aahz <aahz at pythoncraft.com> wrote:
This is why len() is not a method:
map(len, listofstrings)
I disagree with that explanation -- I couldn't know that when I made len() a function, because map() wasn't to become part of the language for another 5-6 years.
My explanation is (a) I translated ABC's #x notation, and (b) I like the way it looks better. Your explanation is at best a handy side effect. :-)
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] functions vs methods (was Re: trunc())
- Next message: [Python-Dev] functions vs methods (was Re: trunc())
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]