Hello,

On Sun, Dec 27, 2009 at 01:00:07PM -0800, Aaron Hoover wrote:

> 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.

Serial are in fact a class of the serial.serialposix module. Serial is only
available in the serialmodule by import as the SerialException class from
serial.serialutil is.

I added a ticket for this : https://www.logilab.net/elo/ticket/19552

> 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.

The two people with extended knowledge of pylint and astng core are still in
holidays for the moment. They will be back next week. Which pylint's version
gave you this error ?

Thank you for your feedback and interest in pylint.

--
Pierre-Yves David
http://logilab.fr/
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to