[Python-Dev] PEP 443 - Single-dispatch generic functions (including ABC support)
Łukasz Langa
lukasz at langa.pl
Mon May 27 23:28:43 CEST 2013
More information about the Python-Dev mailing list
Mon May 27 23:28:43 CEST 2013
- Previous message: [Python-Dev] PEP 443 - Single-dispatch generic functions (including ABC support)
- Next message: [Python-Dev] PEP 443 - Single-dispatch generic functions (including ABC support)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 27 maj 2013, at 15:31, Łukasz Langa <lukasz at langa.pl> wrote: > This is exactly what I did now. I also exposed ._clear_cache() and the > uncached ._find_impl() if somebody finds it necessary to use it. Both > are left undocumented. For the record, I moved _find_impl out of the closure for easier testability. I also simplified it a bit as the results are cached anyway. For the most common case where the function argument is of a type that's directly registered, _find_impl isn't even called now. Anyhow, no remaining issues. Somebody call the BDFL. -- 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 (including ABC support)
- Next message: [Python-Dev] PEP 443 - Single-dispatch generic functions (including ABC support)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list