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

> Hi,
> 
> On Thu, May 23, 2013 at 12:33 AM, Łukasz Langa <luk...@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]
+   https://bitbucket.org/pypy/pypy/raw/default/rpython/tool/pairtype.py


-- 
Best regards,
Łukasz Langa

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

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to