PyMultimethods

A free library that allows multimethods to be written in the Python programming language
Download

PyMultimethods Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Nathan Davis
  • Publisher web site:
  • http://www.sitesays.com/?a=extension
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 5 KB

PyMultimethods Tags


PyMultimethods Description

A free library that allows multimethods to be written in the Python programming language PyMultimethods brings multimethods to Python. PyMultimethods lets you easily and intuitively implement multimethods in a way that integrates seamlessly with python as a whole. Using the (optional) function decorator, your multimethod implementations can read just like regular python functions.The concept of multimethods is similar to the concepts of overriding and overloading that are present in C++, Java, and other statically-typed languages. The difference between PyMultimethods and overloading in these other languages is that PyMultimethods will select the actual function to call at run-time, versus compile-time for Java and C++.In this respect, multimethods are similar to overriding. In fact, multimethods could be described as extending the concept of overriding to multiple (instead of just the implicit self/this) parameters. On the other hand, C++/Java's overriding/single-dispatch could just as easily be described as a special case of multimethods.NOTE: PyMultimethods is developed, distributed and licensed under the terms of the GNU Affero General Public License. What's New in This Release: · Added examples/ directory · Support for Python 3 · Debug info through logging module · Various bug fixes


PyMultimethods Related Software