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 time finding out that 'l' is a dictionary in the first case. Cheers, -- Guido -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pychecker depends on: ii python 2.6.6-3+squeeze2 interactive high-level object-orie ii python-support 1.0.10 automated rebuilding support for P pychecker recommends no packages. pychecker suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org