[Python-projects] pylint and __implements__ vs abc.ABCMeta

2017-08-02 Thread Dan Stromberg
face-not-implemented Assuming they both still work (__implements__ and abc.ABCMeta), which is preferred? Or are they a toss-up? Any suggestions on how to get __implements__ working? Thanks! PS: I'm using: pylint 1.7.1, astroid 1.5.2 Python 3.4.2 (default, Apr 17

Re: [Python-projects] pylint is great

2016-01-20 Thread Dan Stromberg
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 >> https://lists.logilab.o

[Python-projects] Bug report: pylint 1.4.0 on cpython 3.x fails where pylint 1.4.0 on cpython 2.x succeeds

2014-12-02 Thread Dan Stromberg
I'd like to call people's attention to a bug report I just logged. Here's the link: https://bitbucket.org/logilab/pylint/issue/402/psycopg2-spurious-import-error-in-one In short, I've written a small python program that uses a common subset of 2.x and 3.x. Applying pylint to the same code with a

[Python-projects] psycopg2: spurious import error in one python but not another

2014-12-01 Thread Dan Stromberg
r both 2.x and 3.x. -- Dan Stromberg ___ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects

[Python-projects] Recent pylint fails to check foo, but works fine for foo.py

2014-05-16 Thread Dan Stromberg
, 16:37:36) [GCC 4.8.1] $ /usr/local/cpython-3.3/bin/pylint --version No config file found, using default configuration pylint 1.2.0, astroid 1.0.0, common 0.61.0 Python 3.3.3 (default, Apr 23 2014, 17:01:23) [GCC 4.8.1] -- Dan Stromberg ___ Python-Projec

[Python-projects] New warning about print parens not a good idea?

2014-02-05 Thread Dan Stromberg
in a dual-codebase script, but having a single argument works, and indeed is often a good idea for portability. Thoughts? -- Dan Stromberg ___ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects

Re: [Python-projects] pylint 1.0 on cpython 2.5?

2013-08-07 Thread Dan Stromberg
and who is not the addressee, one of his employees or > an agent entitled to hand it over to the addressee, is informed that he may > not use, disclose or reproduce the contents thereof, and is kindly asked to > notify the sender and delete the e-mail immediately. > > -- Dan

[Python-projects] pylint 1.0 on cpython 2.5?

2013-08-07 Thread Dan Stromberg
cmd_obj.run() File "setup.py", line 132, in run shutil.copytree(directory, dest, ignore=lambda dir, names: list(set(names) & exclude)) TypeError: copytree() got an unexpected keyword argument 'ignore' root@zareason:~/src/cpy

[Python-projects] astng 1.0?

2013-07-31 Thread Dan Stromberg
http://www.logilab.org/856 says there's an astng 1.0, but clicking the download link doesn't find an associated file. Is there truly a 1.0? In the "see them all", there are many versions of astng, but no 1.0. Thanks for the useful software

Re: [Python-projects] Pylint and PEP 3102

2012-10-10 Thread Dan Stromberg
On Wed, Oct 10, 2012 at 12:51 PM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > Hi Dan, > > On 10 octobre 12:43, Dan Stromberg wrote: > > Are there plans to teach pylint to understand PEP 3102 / Keyword-only > > arguments (KWOA)? http://www.python.org/dev

Re: [Python-projects] pylint with CPython 3.2 gives traceback

2012-10-10 Thread Dan Stromberg
On Wed, Oct 10, 2012 at 12:49 PM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > On 10 octobre 12:04, Dan Stromberg wrote: > > On Wed, Oct 10, 2012 at 8:49 AM, Sylvain Thénault < > > For pylint, common and astng, I'm using > > "/usr/local/$which

Re: [Python-projects] pylint with CPython 3.2 gives traceback

2012-10-10 Thread Dan Stromberg
On Wed, Oct 10, 2012 at 8:49 AM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > On 10 octobre 08:39, Dan Stromberg wrote: > > On Wed, Oct 10, 2012 at 8:35 AM, Sylvain Thénault < > > sylvain.thena...@logilab.fr> wrote: > > > On 10 octobre 08:18,

Re: [Python-projects] pylint with CPython 3.2 gives traceback

2012-10-10 Thread Dan Stromberg
On Wed, Oct 10, 2012 at 8:35 AM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > On 10 octobre 08:18, Dan Stromberg wrote: > > On Wed, Oct 10, 2012 at 3:15 AM, Sylvain Thénault < > sylvain.thena...@logilab.fr> wrote: > > > On 09 octobre 16:40, Dan Strom

Re: [Python-projects] pylint with CPython 3.2 gives traceback

2012-10-10 Thread Dan Stromberg
On Wed, Oct 10, 2012 at 3:15 AM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > Hi Dan, > > On 09 octobre 16:40, Dan Stromberg wrote: > > I'm getting a traceback when pylint'ing /dev/null using CPython 3.2 using > > the recently released pylint.

[Python-projects] pylint with CPython 3.2 gives traceback

2012-10-09 Thread Dan Stromberg
py2qt4 This is with pylint 0.26.0, astng 0.24.1 and common 0.58.2. Is a fix or workaround available? The same software works OK with CPython 2.7. Thanks! -- Dan Stromberg ___ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects

[Python-projects] pylint traceback on cpython 3.2, and patch

2012-05-05 Thread Dan Stromberg
7 @@ @property def file_stream(self): if self.file is not None: -return file(self.file) +return open(self.file, 'r') return None def block_range(self, lineno): -- Dan Stromberg ___ Pyth

[Python-projects] pylint and optparse?

2012-04-10 Thread Dan Stromberg
ewriting with manual option parsing? Perhaps pylint knows about some other option parsing module? Or are the usual argument parsers just too dynamic? Thanks! -- Dan Stromberg pylint_optparse.shar Description: Unix shell archive ___ Python-Pr

[Python-projects] easy_install pylint downrev?

2011-07-02 Thread Dan Stromberg
Is it important for easy_install to install 0.21.3 when http://www.logilab.org/857 has 0.23.0? Maybe one of them is beta? Does the easy_install update for pylint need to be automated somehow? Thanks! -- Dan Stromberg ___ Python-Projects mailing list

Re: [Python-projects] Pylinting a package?

2011-07-01 Thread Dan Stromberg
On Fri, Jul 1, 2011 at 10:16 PM, Dan Stromberg wrote: > > Even from __future__import absolute_import doesn't seem to help. > Never mind - the above does help cpython 2.x do absolute imports, as advertised. I had a typo that was complicating my analysis. --

Re: [Python-projects] Pylinting a package?

2011-07-01 Thread Dan Stromberg
On Fri, Jul 1, 2011 at 6:38 PM, Dan Stromberg wrote: > > I decided to reorganize > http://stromberg.dnsalias.org/~dstromberg/backshift/ into a "package" > (into a directory with an __init__.py), but started encountering pylint > errors afterward that I'm not sure

[Python-projects] Pylinting a package?

2011-07-01 Thread Dan Stromberg
h maybe I wasn't using ideal search terms. Does pylint support linting packages with absolute imports? Do I need to change how my modules and/or code are arranged to better take advantage of pylint? Thanks! PS: I -love- pylint. it's hard to imagine writing a serious program in Python without it now. -- Dan Stromberg ___ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects

Re: [Python-projects] tracking exceptions in pylint / astng

2011-06-21 Thread Dan Stromberg
on-ideas as well. I've not done much with Java but when I saw this feature in Java, I wished Python had it. Here's the python-ideas list (which I'm not on): http://mail.python.org/mailman/listinfo/python-ideas -- Dan Stromberg ___ Py

Re: [Python-projects] how to deal with windows specific modules?

2011-04-28 Thread Dan Stromberg
it has is things that are legitimate to my relevant python interpreters, but also things that annoy pylint. I like to use one such wrapper for each module that needs to be hidden from pylint - to avoid namespace collisions. -- Dan Stromberg __

Re: [Python-projects] Pylint gives a warning for the filter function

2011-04-07 Thread Dan Stromberg
deprecated. Is the usage of list comprehensions > encouraged? Should I avoid "filter" (and why)? > > Thanks, > > Laszlo > ___ > Python-Projects mailing list > Python-Projects@lists.logilab.org > http://list

[Python-projects] pylint and alternative imports?

2011-01-29 Thread Dan Stromberg
3 via ctypes import dbm as db_mod Thanks! -- Dan Stromberg ___ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects

Re: [Python-projects] pylint: ability to disable W0612 (unused variable) warnings with sequence unpacking

2011-01-24 Thread Dan Stromberg
ntly: > > a, _, c, _, _ = mytuple > What I usually do: foo, bar, baz, blee, blah = mytuple dummy = bar dummy = blee dummy = blah ...that way I still get a sort of description of what the variables are, but no warnings, and no warnings turned off that might cause something unrelated to go

Re: [Python-projects] Py3k port

2010-09-07 Thread Dan Stromberg
On Mon, Sep 6, 2010 at 10:59 PM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > On 06 septembre 11:59, Dan Stromberg wrote: > > On Mon, Sep 6, 2010 at 1:59 AM, Sylvain Thénault < > > > are you sure you're not testing system installed logilab.common ? >

Re: [Python-projects] Py3k port

2010-09-06 Thread Dan Stromberg
On Mon, Sep 6, 2010 at 2:09 AM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > On 01 septembre 11:35, Emile Anclin wrote: > > On Monday 16 August 2010 14:08:25 Tshepang Lekhonkhobe wrote: > > > On Thu, Aug 12, 2010 at 23:03, Tshepang Lekhonkhobe < > tshep...@gmail.com> > > wrote: > > > I

Re: [Python-projects] Py3k port

2010-09-06 Thread Dan Stromberg
Thanks for your thoughts. Now might be a good time to send out this page again: http://wiki.python.org/moin/PyLint-3k Do you feel that the conversion will of necessity be more complex than what sa2to3 and perhaps some if's or conditional imports can handle? -- Dan Stromberg ___ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects

Re: [Python-projects] Py3k port

2010-09-06 Thread Dan Stromberg
On Mon, Sep 6, 2010 at 1:59 AM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > On 28 août 18:42, Dan Stromberg wrote: > > Aside from skipped mxDateTime issues, I've got only unit test error now: > > > > ERROR: test_ustrftime_b

Re: [Python-projects] pyreverse: few dependencies that should be shown, are shown?

2010-09-02 Thread Dan Stromberg
On Thu, Sep 2, 2010 at 1:34 AM, Emile Anclin wrote: > On Thursday 02 September 2010 02:21:52 Dan Stromberg wrote: > > Hi folks. > > hi, > > > I'm using a recent (see below for specifics) python2 version of > > pyreverse in an attempt to diagram i

[Python-projects] pyreverse: few dependencies that should be shown, are shown?

2010-09-01 Thread Dan Stromberg
not for my own classes that I'm feeding to pyreverse. The command I'm using to invoke pyreverse is: pyreverse -f ALL -a1 -s1 -p port-const ${files} Am I missing some option or something? Thanks! PS: I'm using pylint 0.19.0, astng 0.19.3, common

Re: [Python-projects] Py3k port

2010-08-28 Thread Dan Stromberg
Py3k? Is there a branch > somewhere? > > -- > blog: http://tshepang.tumblr.com > ___ > Python-Projects mailing list > Python-Projects@lists.logilab.org > http://lists.logilab.org/mailman

Re: [Python-projects] Py3k port

2010-08-28 Thread Dan Stromberg
On Mon, Aug 23, 2010 at 12:13 AM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > On 20 août 16:24, Dan Stromberg wrote: > > Where is this "data" directory that pytest complains about in the > "common" > > package? It seems to want a bunc

Re: [Python-projects] Py3k port

2010-08-22 Thread Dan Stromberg
s > Well, /add/Card's down right now, so I'm not sure - but the main thing is just that when I asked about a wiki, no one suggested /add/Card then, so I went ahead with a wiki. -- Dan Stromberg ___ Python-Projects mailing list Python-Pr

Re: [Python-projects] Py3k port

2010-08-20 Thread Dan Stromberg
On Fri, Aug 20, 2010 at 2:21 PM, Tshepang Lekhonkhobe wrote: > On Fri, Aug 20, 2010 at 21:42, Dan Stromberg wrote: > > > > On Tue, Aug 17, 2010 at 11:01 PM, Sylvain Thénault > > wrote: > >> > >> On 17 août 18:47, Dan Stromberg wrote: > >> > On

Re: [Python-projects] Py3k port

2010-08-20 Thread Dan Stromberg
On Tue, Aug 17, 2010 at 11:01 PM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > On 17 août 18:47, Dan Stromberg wrote: > > On Mon, Aug 16, 2010 at 5:08 AM, Tshepang Lekhonkhobe < > tshep...@gmail.com>wrote: > > > Thanks for the great responses. It&#x

Re: [Python-projects] Py3k port

2010-08-17 Thread Dan Stromberg
and old features to conditionally remove, from what pylint will accept - so that pylint for python3 doesn't accidentally accept features that are only in python2, for example. -- Dan Stromberg ___ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects

Re: [Python-projects] Py3k port

2010-08-14 Thread Dan Stromberg
Another question: logilab-common seems to be larger than pylint itself. Does pylint use all of logilab-common? logilab-common seems to hold a bunch of miscellaneous code. -- Dan Stromberg ___ Python-Projects mailing list Python-Projects

Re: [Python-projects] Py3k port

2010-08-14 Thread Dan Stromberg
On Sat, Aug 14, 2010 at 1:07 PM, Dan Stromberg wrote: > > I've checked out the sources with: > hg clone http://www.logilab.org/hg/pylint > hg clone http://www.logilab.org/src/logilab/astng > hg clone http://www.logilab.org/src/logilab/common > BTW, do all three of th

Re: [Python-projects] Py3k port

2010-08-14 Thread Dan Stromberg
On Thu, Aug 12, 2010 at 10:58 PM, Sylvain Thénault < sylvain.thena...@logilab.fr> wrote: > On 12 août 16:02, Dan Stromberg wrote: > > On Thu, Aug 12, 2010 at 2:08 PM, Shashwat Anand < > anand.shash...@gmail.com>wrote: > > > On Fri, Aug 13, 2010 at 2:33 A

Re: [Python-projects] Py3k port

2010-08-12 Thread Dan Stromberg
+python+3 >From there, the changes could probably be prioritized, and coded one by one or in parallel. There's also the issue of whether pylint would run on python 2 while checking python 3, or run on python 3 while checking python 3 - I don't k

[Python-projects] pylint and python 3.x?

2010-06-11 Thread Dan Stromberg
What's happening with pylint and python 3.x? Is the GSoC thing happening? I have some new code I want to write, and I'd like to do it in Python 3.x, but not if it means having to write it without pylint. -- Dan Stromberg ___ Python-Projec