#893 Python 2.6 grammar error: kwarg after unpacking arg list

1.4.4
closed-fixed
Editor (491)
5
2009-04-30
2009-04-09
No

Pydev incorrectly complains about kwarg after unpacking arg list in function call.

def fubar(*args, **kwargs): pass

list = ['a', 'b', 'c']
fubar(*list, x=4) # Encountered "x" at line 4, column 14. Was expecting one of: "*" ... "**" ...

OS X 10.5.6, PPC G5
Eclipse Platform, Version: 3.4.2, Build id: M20090211-1700
Pydev 1.4.4.2636
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2009-04-09
    • status: open --> pending
     
  • Guido Kollerie

    Guido Kollerie - 2009-04-10

    'PyDev - project type' specifies this project to be:

    Python, grammar version: 2.6, interpreter: Default

    Facing a deadline today. Will give 1.4.5 a shot tomorrow. Thanks.

     
  • Guido Kollerie

    Guido Kollerie - 2009-04-10
    • status: pending --> open
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-04-11
    • summary: kwarg after unpacking arg list -> incorrectly marked error --> Python 2.6 grammar error: kwarg after unpacking arg list
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-04-11

    Ok, I've just tested it here and that error is still happening in the 2.6 grammar (I had tested in the 3.0 where it is OK)

     
  • Guido Kollerie

    Guido Kollerie - 2009-04-14

    FYI, I upgraded to 1.4.5.2727 and the error is still there.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-04-30

    Fixed for 1.4.6 (svn: 2750)

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-04-30
    • status: open --> closed-fixed