On 27 décembre 11:57, Aaron Hoover wrote: > 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.
and you're absolutly right :) > 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. I'm pretty sure this has already been reported but I can't find a related ticket. I'll add a new one. Which pyserial/python/pylint/astng versions are you using? pylint --version will help. > 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. It definitly shouldn't *ever* hang. Could you send me the smallest possible code snapshot that triggers this, with matploblib version information? > 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. Nice to hear :) Thank you for your report! -- Sylvain Thénault LOGILAB, Paris (France) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects