Re: [code-quality] pylint can't deduce the type of an object

2014-11-29 Thread Paul Smith
On Fri, 2014-11-28 at 23:09 +0200, Claudiu Popa wrote: > On Fri, Nov 28, 2014 at 10:57 PM, Paul Smith wrote: > > Hi all; as mentioned in a previous post, I am looking into updating my > > curring pylint (1.0.1) to newer pylint 1.4.0. > > > > I've got one significa

Re: [code-quality] pylint can't deduce the type of an object

2014-11-28 Thread Paul Smith
On Fri, 2014-11-28 at 23:09 +0200, Claudiu Popa wrote: > On Fri, Nov 28, 2014 at 10:57 PM, Paul Smith wrote: > > Hi all; as mentioned in a previous post, I am looking into updating my > > curring pylint (1.0.1) to newer pylint 1.4.0. > > > > I've got one significa

[code-quality] pylint can't deduce the type of an object

2014-11-28 Thread Paul Smith
Hi all; as mentioned in a previous post, I am looking into updating my curring pylint (1.0.1) to newer pylint 1.4.0. I've got one significant problem left and I'm not sure how to resolve it: in the new pylint I'm seeing a number of errors like this: mymod.py:227: [E1101(no-member), MyMod.__str_

Re: [code-quality] Lots of E1101 in standard modules after upgrading pylint to 1.4.0

2014-11-26 Thread Paul Smith
On Wed, 2014-11-26 at 17:14 -0500, Paul Smith wrote: > if os.name == 'nt': > STD_LIB_DIRS.append(os.path.join(sys.prefix, 'dlls')) Also, I don't use this on Windows but this looks odd to me: wouldn't the "dlls" direc

Re: [code-quality] Lots of E1101 in standard modules after upgrading pylint to 1.4.0

2014-11-26 Thread Paul Smith
On Wed, 2014-11-26 at 17:04 -0500, Paul Smith wrote: > If I reset STD_LIB_DIRS like this: > > >>> modutils.STD_LIB_DIRS = ['/opt/python/lib/python2.7', > '/opt/python/x86_64-linux/lib/python2.7'] > > Then I get: > > >>> modutils.is_

Re: [code-quality] Lots of E1101 in standard modules after upgrading pylint to 1.4.0

2014-11-26 Thread Paul Smith
'time') False Hm. Why are both paths in STD_LIB_DIRS the same? Should one of them be the execprefix path? Aha! If I reset STD_LIB_DIRS like this: >>> modutils.STD_LIB_DIRS = ['/opt/python/lib/python2.7', '/opt/python/x86_64-linux/lib/python2.7'] Then I get:

Re: [code-quality] Lots of E1101 in standard modules after upgrading pylint to 1.4.0

2014-11-26 Thread Paul Smith
On Wed, 2014-11-26 at 02:03 -0500, Paul Smith wrote: Forgot to say, I'm running on GNU/Linux Ubuntu GNOME 14.10 and I've built all these tools (including python) myself from source. > Hi all; I just upgraded to a newer version of pylint and now I'm seeing > many

[code-quality] Lots of E1101 in standard modules after upgrading pylint to 1.4.0

2014-11-26 Thread Paul Smith
Hi all; I just upgraded to a newer version of pylint and now I'm seeing many spurious E1101 errors. Before I was using: * Python 2.7.6 * Pylint 1.1.0 * Astroid 1.0.1 * logilab-common 0.61.0 Now I've upgraded to: * Python 2.7.8 * Pylint 1.4.0 * Astroid 1.3