[Python-projects] Potential bug with imports in pylint

2010-04-19 Thread Michael Hanselmann
Hello With the following demonstration code, pylint 0.20 warns about an “Unused import distutils” for “import distutils.command.build”. We're also seeing this in real code, see [1]. Is this a bug? #!/usr/bin/python2.4 from distutils import version

[Python-projects] pyreverse raises “AttributeE rror: 'Subscript' object has no attribute 'infer_lhs'”

2010-02-17 Thread Michael Hanselmann
Hello And another bug report. The following cut-down version of a larger script raises “AttributeError: 'Subscript' object has no attribute 'infer_lhs'” in pyreverse. As in my previous bug report, this script wouldn't work on its own, but it reproduces the error. A complete backtrace can be found

[Python-projects] pyreverse raises “KeyError : '~'”

2010-02-17 Thread Michael Hanselmann
Hello The following cut-down version of a larger script raises “KeyError: '~'” in pyreverse. As in my previous bug report, this script wouldn't work on its own, but it reproduces the error. A complete backtrace can be found at the end of this e-mail. --

[Python-projects] Checking code raises “TypeEr ror: '_Yes' object is not iterable”

2010-02-11 Thread Michael Hanselmann
Hello Using this pylint version: $ pylint --version pylint 0.19.0, astng 0.19.3, common 0.46.0 Python 2.5.2 The following cut-down version of a larger script raises “TypeError: '_Yes' object is not iterable”. The script as given wouldn't work, but it reproduces the error in pylint. If I change “