overloading on type?

Nathan Froyd froydnj at rose-hulman.edu
Thu Feb 15 00:20:46 EST 2001


In article <982149618.95754 at master.nyc.kbcfp.com>, Burkhard Kloss wrote:
>Maybe I'm just having a conceptual block here as a result of my upbringing
>(I'm a longtime and unrepentant C++ user and lover), but surely in a
>language as nice as python there must be a better way to do this? :)
>Overloading obviously doesn't fit into the conceptual framework of the
>language.

You might try Multimethod.py:

http://www.sff.net/people/neelk/open-source/

It might not do *exactly* what you want (I don't know if you can
specialize on built-in datatypes and I don't know what the speed is
like), but it's probably a good starting point.
-- 
</nathan>  froydnj at rose-hulman.edu  |  http://www.rose-hulman.edu/~froydnj/

Yes, God had a deadline.  So He wrote it all in Lisp.



More information about the Python-list mailing list