[Python-3000] PEP 3102 comments

Benji York benji at benjiyork.com
Wed May 24 23:15:37 CEST 2006


Antoine Pitrou wrote:
> Why not:
>   def f(a, b, !c, !d):
> 
> The exclamation mark can be thought to say "you must explicitly mention
> this one by its name".
> I think having a sigil in front of a variable name is less ugly than
> having a separate sigil between commas as a fake parameter.

In that case, just use the current default value syntax, sans value (d, 
below):

def f(a, b, c=None, d=):
--
Benji


More information about the Python-3000 mailing list