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

Antoine Pitrou solipsis at pitrou.net
Sat May 25 22:25:27 CEST 2013


On Sat, 25 May 2013 22:16:04 +0200
Łukasz Langa <lukasz at langa.pl> wrote:

> 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.

Let it cook for a week or two.

Regards

Antoine.




More information about the Python-Dev mailing list