use str as variable name
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Fri Sep 5 15:16:36 EDT 2008
Marco Bizzarri a écrit :
> On Thu, Sep 4, 2008 at 10:47 AM, Fredrik Lundh <fredrik at pythonware.com> 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.
More information about the Python-list
mailing list