Bug#608153: Fails to detect dictionaries

2010-12-29 Thread Kenneth Pronovici
On Mon, Dec 27, 2010 at 4:41 PM, Kenneth Pronovici prono...@debian.org wrote: Seems pychecker has a hard time finding out that 'l' is a dictionary in the first case. Hmm.  Might be a Python 2.6 issue?  I'll report it upstream. It turns out that a similar bug was filed upstream about a year

Bug#608153: Fails to detect dictionaries

2010-12-27 Thread Guido Günther
Package: pychecker Version: 0.8.18-7 Severity: normal Hi. while this: def test(): l = {'a': None } print l.has_key('a') Generates a: p.py:3: Object (l) has no attribute (has_key) This works: def test(): l = dict(a=None) print l.has_key('a') Seems pychecker has a hard

Bug#608153: Fails to detect dictionaries

2010-12-27 Thread Kenneth Pronovici
Seems pychecker has a hard time finding out that 'l' is a dictionary in the first case. Hmm. Might be a Python 2.6 issue? I'll report it upstream. Thanks, KEN