use str as variable name

Marco Bizzarri marco.bizzarri at gmail.com
Sat Sep 6 02:08:29 EDT 2008


On Sat, Sep 6, 2008 at 7:52 AM, Fredrik Lundh <fredrik at pythonware.com> 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/



More information about the Python-list mailing list