Greg Ewing a écrit :
> Jim Jewett wrote:
> 
> 
>>It has not yet been specified what would happen to additional
>>positional arguments that get passed in anyway.  (Swallow or raise an
>>Exception?)
> 
> 
> I've always intended that there would be an exception.
> 
If so, why not replace the lone star, whose meaning is not clear, with 
"*forbidden", as in:

def f(a, b, *forbidden, c, d=1)

The meaning would be clearer: "remaining positional arguments are forbidden, 
and 
will thus raise an exception".

Baptiste

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to