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
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
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
3 matches
Mail list logo