Author Inyeol.Lee
Recipients Inyeol.Lee
Date 2012-10-25.06:24:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351146260.34.0.857834219193.issue16319@psf.upfronthosting.co.za>
In-reply-to
Content
Ubuntu 12.04, python 3.2.3

Optional trailing comma causes syntax error if used for keyword-only argument list:

These are OK --
def f(a, b,): pass
def f(a, b=None,): pass

These triggers syntax error --
def f(a, *, b,): pass
def f(a, *, b=None,): pass

python 3.1 and 3.2 shows this error, not tested for 3.3 yet.
History
Date User Action Args
2012-10-25 06:24:20Inyeol.Leesetrecipients: + Inyeol.Lee
2012-10-25 06:24:20Inyeol.Leesetmessageid: <1351146260.34.0.857834219193.issue16319@psf.upfronthosting.co.za>
2012-10-25 06:24:20Inyeol.Leelinkissue16319 messages
2012-10-25 06:24:19Inyeol.Leecreate