Please note: This wiki is currently running in test mode after an attack on January 5 2013. All passwords were reset, so you will have to use the password recovery function to get a new password. To edit wiki pages, please log in first. See the wiki attack description page for more details. If you find problems, please report them to the pydotorg-www mailing list.

Multiple dispatch in Python

Multiple dispatch (aka multimethods, generic functions, and function overloading) is choosing which among several function bodies to run, depending upon the arguments of a call.

There's been discussion of adding multimethods to python core for several years, multiple PEPs, several libraries, some widespread production use, and a bit of internal use in current core.

There doesn't seem to be anywhere on the web which collects information on python multiple dispatch, nor which compares the available libraries' features and performance. This page is intended to grow into that.

See also

MultipleDispatch (last edited 2009-07-06 17:19:41 by c-98-216-110-149)