use str as variable name

Michele Simionato michele.simionato at gmail.com
Sat Sep 6 08:39:02 CEST 2008


On Sep 6, 8:02 am, "Marco Bizzarri" <marco.bizza... at gmail.com> wrote:
> On Fri, Sep 5, 2008 at 9:16 PM, Bruno Desthuilliers
>
> <bdesth.quelquech... at free.quelquepart.fr> wrote:
> > Marco Bizzarri a écrit :
>
> >> 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.
>
> Even though I loved them when I used at university, I'm not looking
> for them right now... but nice to know that they are available under
> python :-)

Actually they are already available in the standard library but they
are undocumented. See for instance
this recent blog post of mine:

http://www.artima.com/weblogs/viewpost.jsp?thread=237764

(as well as the comment below by P.J. Eby)



More information about the Python-list mailing list