From: "Tim Peters" <tim.one@comcast.net> > I haven't studied this, but from a quick glance it looks competent. > > > Multimethod-0.1 is another python module for implementing multimethods > (a.k.a. generic functions, multiple-argument method dispatch). This > one features: > > - support for Python2.2 type/class unification > - a precedence graph for more efficient dispatching > - a best-fit resolution algorithm, in which the method closest in > inheritance distance is called > - a versatile 'call-next-method' or 'super' function. > > Available at http://bent-arrow.com/python and the Vaults of Parnassus. > > -Coady It's a good start, but from the docs it doesn't appear to deal with: a. Type categories -- it seems as though the only way for a multimethod implementation to match an actual argument is if the formal argument has an inheritance relationship with it. b. Implicit conversions -- If I declare a function that accepts a Python int, can I pass a Python float? I think both of the above are important for any Python multimethod implementation. ----------------------------------------------------------- David Abrahams * Boost Consulting dave@boost-consulting.com * http://www.boost-consulting.com ################################################################# ################################################################# ################################################################# ##### ##### ##### ################################################################# ################################################################# #################################################################
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4