Re: [Python-Dev] PEP 443 - request for pronouncement

2013-05-31 Thread Gustavo Carneiro
Sorry, maybe I am too late to comment on this, but, >>> @singledispatch ... def fun(arg, verbose=False): ... if verbose: ... print("Let me just say,", end=" ") ... print(arg) It is not clear from the PEP (up until the end of the User API section at least) when, if ever,

Re: [Python-Dev] PEP 443 - request for pronouncement

2013-05-31 Thread Gustavo Carneiro
On Fri, May 31, 2013 at 11:34 AM, Łukasz Langa wrote: > On 31 maj 2013, at 12:18, Gustavo Carneiro wrote: > > > It is not clear from the PEP (up until the end of the User API section > at least) when, if ever, is this implementation of fun ever called. I > mean, what type of 'arg' triggers a di

Re: [Python-Dev] PEP 443 - request for pronouncement

2013-05-31 Thread Łukasz Langa
On 31 maj 2013, at 12:18, Gustavo Carneiro wrote: > It is not clear from the PEP (up until the end of the User API section at > least) when, if ever, is this implementation of fun ever called. I mean, > what type of 'arg' triggers a dispatch to this function body? I added a sentence clarifyin

[Python-Dev] PEP 443 - request for pronouncement

2013-05-31 Thread Łukasz Langa
Hello python-dev, PEP 443 is ready for final review. I'm attaching the latest version below for convenience. The full history of changes is available here: http://hg.python.org/peps/log/tip/pep-0443.txt A reference implementation for PEP 443 is available at: http://hg.python.org/features/pep-443/