Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Comma is not always OK in the argument list?!

    0 answers - 434 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi!
    it is interesting that I found this syntax error:
    a = {}
    str('sdfd', **a,)
    File "<stdin>", line 1
    str('sdfd', **a,)
    ^
    SyntaxError: invalid syntax
    I just wonder is it intentional or by-product (bug or feature)?
    (The behaviour makes sense, of course I tend to leave commas when I
    expect a list to be added to (i.e. almost always ;-)))
    Regards,
    Roman

Re: Comma is not always OK in the argument list?!


max 4000 letters.
Your nickname that display:
In order to stop the spam: 2 + 1 =
QUESTION ON "Development"

EMSDN.COM