PyMultimethods is a library that enables users to create multimethods (a.k.a. generic functions) in Python. In other words, you can create multiple versions of the same function/method. The one that is invoked depends on the runtime parameters. This is similar to polymorphism in the sense that the object type determines which version of the function is invoked. Multimethods go beyond the polymorphism found in conventional object oriented languages, however, because all parameters are taken into account (as opposed to only the "implied this", as in C++ or Java). PyMultimethods can also be used to "overload" a function or method.
Re: Doesn't work - no instructions
> Has anyone actually made this work? HOW
> do you make it work? Sounds fascinating,
> but... :)
I have gotten it to work. You just need to run 'java -jar '. If this is producing errors, what are the errors? There is no need to make the jar file executable.
The program itself is a little awkward, but simple enough once you get the hang of it.