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

Łukasz Langa lukasz at langa.pl
Sat May 25 22:16:04 CEST 2013


On 25 maj 2013, at 17:13, Nick Coghlan <ncoghlan at gmail.com> wrote:

So I think I'd prefer flipping this around - you can't provide a custom registry mapping, but you can get access to a read only view of it through a "registry" attribute on the generic function.

You guys convinced me. Both the PEP and the implementation are updated accordingly. I also introduced the caching as suggested by PJ.

So, the latest document is live: http://www.python.org/dev/peps/pep-0443/

The code is here: http://hg.python.org/features/pep-443/file/tip/Lib/functools.py#l363

The documentation here: http://hg.python.org/features/pep-443/file/tip/Doc/library/functools.rst#l189

The tests here: http://hg.python.org/features/pep-443/file/tip/Lib/test/test_functools.py#l855

I say we're ready.

-- Best regards, Łukasz Langa

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



More information about the Python-Dev mailing list