[New-bugs-announce] [issue2613] inconsistency with bare * in parameter list

Mark Summerfield report at bugs.python.org
Fri Apr 11 10:42:50 CEST 2008


New submission from Mark Summerfield <mark at qtrac.eu>:

A bare * in a parameter list behaves differently depending on what
follows it:

Py30a4:

>>> def f(*, a=1, b=2): return 1

>>> def g(*, **kwargs): return 1
SyntaxError: named arguments must follow bare * (<pyshell#10>, line 1)

I don't know if this is a bug or not but thought it worth querying. This
case does not seem to be mentioned in PEP 3102.

----------
components: Interpreter Core
messages: 65340
nosy: mark
severity: normal
status: open
title: inconsistency with bare * in parameter list
type: behavior
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2613>
__________________________________


More information about the New-bugs-announce mailing list