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
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
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
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
, 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
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
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
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
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
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
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
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,
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
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.
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
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
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
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
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.
--
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
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
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
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
__
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
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
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
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 ?
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
+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
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
43 matches
Mail list logo