My python annoyances so far

Michael Hoffman cam.ac.uk at mh391.invalid
Thu Apr 26 12:22:01 EDT 2007


flifus at gmail.com wrote:

> Well, why do some things in the library have to be functions, and
> other things have to be class methods?

They don't have to be. They just are. That's like asking why do some 
functions start with the letters a-m, and others with n-z. Why can't 
they all begin with a-m? The answer would be that it would make the 
language harder to use to cram concepts that should more naturally start 
with n-z into spellings that start with a-m.
-- 
Michael Hoffman



More information about the Python-list mailing list