Who's minister of propaganda this week?

Neelakantan Krishnaswami neelk at alum.mit.edu
Wed Mar 14 20:57:49 EST 2001


On Thu, 15 Mar 2001 00:09:30 +0100, Alex Martelli <aleaxit at yahoo.com> wrote:
>"Steven D. Majewski" <sdm7g at virginia.edu> wrote in message
>news:mailman.984595938.11127.python-list at python.org...
>    [snip]
>> ( OK: not having multiple dispatch in Python means that some manual
>> dispatching is sometimes required, but usually this is burried deep
>> in some classes __coerce__ method. )
>
> "Usually" in arithmetic, perhaps.  For fancier stuff, lack of
> multimethods sometimes cramps (not that it cramps any less in C++,
> mind you), though some patterns (such as 'dynamic visitor') can help
> a bit in certain (reasonably frequent) special cases.

What's a dynamic visitor? Is it a dictionary keyed on class? That's
what I usually do when emulating multimethods in Python.


Neel



More information about the Python-list mailing list