On Sat, Sep 6, 2008 at 7:52 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Marco Bizzarri 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? > > it's meant in exactly that sense: len(L) means "of all len() implementations > available to the runtime, execute the most specific code we have for the > object L". >
It is a generic functions like a CLOS one, as long as we remain to one parameter. I mean, there will be just one implemenatation of foo(bar, man) which the python interpretr can find; am I right? -- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list