My apologies if this is the wrong list to post to regarding issues
with pylint - but it seemed to be the appropriate address based on my
perusal of the logilab website.
I have a fairly large Python file that contains a couple classes as
well as a standalone function. It's a pretty involved WX application
that uses serial communication, multiprocessing, and matplotlib to
visualize some realtime data from a hardware device. Until now, I
haven't been paying much attention to coding conventions, so my file
got up to about 600 lines of code before I discovered pylint and first
ran it (generating gobs of errors and warnings).
First off, I seem to be getting a couple of false positives related to
the serial module (pyserial):
E: 4: No name 'Serial' in module 'serial'
E: 4: No name 'SerialException' in module 'serial'
Line 4 is this:
from serial import Serial, SerialException
Serial and SerialException are both classes in the serial module, so
I'm not really sure why those two errors are cropping up.
Secondly, the last line in the following lines of code causes pylint
to hang:
self.dpi = 100
self.fig = Figure((3.0, 3.0), dpi=self.dpi)
self.axes = self.fig.add_subplot(111)
The first two lines are ok, but when I uncomment the last line, pylint
hangs. This is a pretty standard matplotlib call that just returns an
axes instance from the creation of a new plot, so I don't see a reason
why it should hang pylint. Commenting out this line (and others that
reference the "axes" member) allows pylint to run to completion.
Finally, thanks for the all the great work on pylint. I'm really
enjoying using it and it's forcing me to develop much better coding
habits as a result.
Cheers,
Aaron
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects