[Python-Dev] PEP 443 - Single-dispatch generic functions (original) (raw)
Łukasz Langa lukasz at langa.pl
Thu May 23 16:13:18 CEST 2013
- Previous message: [Python-Dev] PEP 443 - Single-dispatch generic functions
- Next message: [Python-Dev] PEP 443 - Single-dispatch generic functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 443 - Single-dispatch generic functions
- Next message: [Python-Dev] PEP 443 - Single-dispatch generic functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]