[Python-Dev] type categories
David Abrahams
David Abrahams" <dave@boost-consulting.com
Thu, 15 Aug 2002 00:56:23 -0400
From: "Guido van Rossum" <guido@python.org>
to more arguments as well.)
>
> It might also be possible to modify a multimethod dynamically,
> e.g. later one could write:
>
> def f4(a: Cat4):
> ...code for Cat4...
>
> f.add(f4)
>
> This is more in the spirit of Python than your original proposal,
> which appeared like the compiler would have to gather all the
> definitions from different places and fuse them. That would be too
> complex for Python's simple-minded compiler!
This is most like what I had in mind.
-----------------------------------------------------------
David Abrahams * Boost Consulting
dave@boost-consulting.com * http://www.boost-consulting.com