While python's multimethod module allows function overloading based on types, here's another approach to do the same based on a switching function (clojure style) or on a set of conditions.
Clojure style multimethod functions in python<http://codeblog.dhananjaynene.com/2010/08/clojure-style-multi-methods-in-python/> . Comments if any welcome on the blog post / here. -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers