#14 Spurious warning with dict(name=value)

closed-fixed
nobody
None
5
2004-06-26
2004-06-25
Greg Chapman
No

The following produces 2 warnings with pychecker
0.8.14 (python 2.3.4; Windows XP):

d = dict(a=1, b=2)

The warnings are about keyword arguments for dict. It
might be worth special casing dict (in _checkBuiltin) in
newer versions (2.3+?) since dict now accepts arbitrary
keyword arguments.

Discussion

  • Neal Norwitz
    Neal Norwitz
    2004-06-26

    • status: open --> closed
     
  • Neal Norwitz
    Neal Norwitz
    2004-06-26

    Logged In: YES
    user_id=33168

    Whoops. I did fix this, but forgot that the change went
    back to 2.3. I incorrectly had it for 2.4. To fix your
    version, just change PYTHON_2_4 to PYTHON_2_3 on line 100 of
    pychecker/python.py

     
  • Neal Norwitz
    Neal Norwitz
    2004-06-26

    • status: closed --> closed-fixed