[Python-Dev] PEP 443 - Single-dispatch generic functions (original) (raw)

Łukasz Langa lukasz at langa.pl
Thu May 23 16:13:18 CEST 2013


On 23 maj 2013, at 09:33, Armin Rigo <arigo at tunes.org> wrote:

Hi,

On Thu, May 23, 2013 at 12:33 AM, Łukasz Langa <lukasz at langa.pl> wrote: Alternative approaches ====================== You could also mention "pairtype", used in PyPy:

Thanks for pointing that out. Information on it added in http://hg.python.org/peps/rev/b7979219f3cc#l1.7

+PyPy's RPython offers extendabletype [#pairtype]_, a metaclass which +enables classes to be externally extended. In combination with +pairtype() and pair() factories, this offers a form of +single-dispatch generics.

+.. [#pairtype]

-- Best regards, Łukasz Langa

WWW: http://lukasz.langa.pl/ Twitter: @llanga IRC: ambv on #python-dev



More information about the Python-Dev mailing list