Marco Bizzarri a écrit :
On Thu, Sep 4, 2008 at 10:47 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:

(...as Bruno implies, setattr(), len() et al can be and should be viewed as
generic functions.

Just a question: "generic functions" are not meant in the sense of
"generic functions" of CLOS, am I right?

Nope. Just "generic" in the sense that they accept any object implementing a very minimal interface.

If you want something like CLOS multimethods, you may be interested in Philip Eby's ruledispatch.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to