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,
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
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
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/