[Python-Dev] PEP 443 - Single-dispatch generic functions (including ABC support)

Russell E. Owen rowen at uw.edu
Tue May 28 21:41:23 CEST 2013


In article <C9841B1F-80F3-4E77-83E6-F71859524BC8 at langa.pl>,
 Łukasz Langa <lukasz at langa.pl> wrote:

> Hello,
> Since the initial version, several minor changes have been made to the
> PEP. The history is visible on hg.python.org. The most important
> change in this version is that I introduced ABC support and completed
> a reference implementation.
> 
> No open issues remain from my point of view.

Is it true that this cannot be used for instance and class methods? It 
dispatches based on the first argument, which is "self" for instance 
methods, whereas the second argument would almost certainly be the 
argument one would want to use for conditional dispatch.

-- Russell



More information about the Python-Dev mailing list