[Python-ideas] Positional only arguments

Jim Jewett jimjjewett at gmail.com
Tue May 22 00:47:01 CEST 2007


On 5/21/07, Steven Bethard <steven.bethard at gmail.com> wrote:

>     def update(self, container=None, **kwargs)

> Note that I shouldn't want to write '__container' because it's not an
> implementation detail.

Yes, it is.

The fact that there *is* a parameter there isn't an implementation
detail, but the *choice of name* for that parameter is explicitly an
implementation detail -- if it weren't, then you wouldn't need to
insist on positional-only calling.

-jJ



More information about the Python-ideas mailing list