[Python-3000] PEP3102 Keyword-Only Arguments

Josiah Carlson jcarlson at uci.edu
Tue Aug 15 07:43:17 CEST 2006


Aahz <aahz at pythoncraft.com> wrote:
> 
> On Mon, Aug 14, 2006, Guido van Rossum wrote:
> > On 8/14/06, Nick Coghlan <ncoghlan at gmail.com> wrote:
> >>
> >> However, I'm also wondering if we need an actual syntax, or if a simple
> >> convention would do the trick: start the names of positional-only arguments
> >> with an underscore.
> > 
> > Hm... and perhaps we could forbid keyword arguments starting with an
> > underscore in the call syntax?
> 
> Do you mean forbid by convention or syntactically?  I'm -1 on the latter;
> that would be far too much gratuitous code breakage.

At least 40 examples of it being used in a keyword argument in the 2.5b2
standard library (so sayeth my regular expression of '\((.*?\s)?_\w*=' ).

 - Josiah



More information about the Python-3000 mailing list