In <[EMAIL PROTECTED]>, flifus wrote:

> Well, why do some things in the library have to be functions, and
> other things have to be class methods?
> 
> Why aren't they all just either functions or class methods? like
> perhaps ruby.

To which class should `sorted()` belong to then?  Or the functions in the
`math` module?  What about `itertools`?

In languages without functions, like Java, you'll have to write static
methods where you really want functions, just because Java forces you to
stuff everything into classes.

And instead of a simple ``lambda`` function one needs to write an
anonymous class with a method.  Quite convoluted.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to