From thisfred at gmail.com Mon Apr 11 15:55:17 2016 From: thisfred at gmail.com (Eric Casteleijn) Date: Mon, 11 Apr 2016 12:55:17 -0700 Subject: [code-quality] [Social] Who is going to PyCon (US)? In-Reply-To: References: <1459183863.2466746.561592938.3D078565@webmail.messagingengine.com> Message-ID: Hey, so I meant to reply, and then spaced on it, but: I'd be happy to suggest locations, once we have a date, and a sense of dietary and other requirements/desires of attendees, if we plan for it to include food/drinks. On Mon, Mar 28, 2016 at 3:53 PM, Ian Cordasco wrote: > On Mon, Mar 28, 2016 at 4:22 PM, Eric Casteleijn > wrote: > > I will be at Pycon, and would love to attend such a meeting, though I > > realize I've only been lurking here so far. I'd like to contribute more > > though. I live in Portland, so any date is likely to work for me. > > Don't worry about being a "lurker". :-) You'll likely be our source of > a location to head to if we can't get a BoF space (which I think will > suit us well). > > I look forward to seeing you, Matt, Ian, and whomever else comes. :-) > > Cheers, > Ian > -- - eric casteleijn -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.wandschneider at schrodinger.com Mon Apr 11 16:24:01 2016 From: daniel.wandschneider at schrodinger.com (Dan Wandschneider) Date: Mon, 11 Apr 2016 13:24:01 -0700 Subject: [code-quality] [Social] Who is going to PyCon (US)? Message-ID: I'm also local and planning to attend PyCon, mostly because I'm interested in chatting with this group! On Mon, Apr 11, 2016 at 12:55 PM, Eric Casteleijn wrote: > Hey, so I meant to reply, and then spaced on it, but: I'd be happy to > suggest locations, once we have a date, and a sense of dietary and other > requirements/desires of attendees, if we plan for it to include food/drinks. > > On Mon, Mar 28, 2016 at 3:53 PM, Ian Cordasco > wrote: > >> On Mon, Mar 28, 2016 at 4:22 PM, Eric Casteleijn >> wrote: >> > I will be at Pycon, and would love to attend such a meeting, though I >> > realize I've only been lurking here so far. I'd like to contribute more >> > though. I live in Portland, so any date is likely to work for me. >> >> Don't worry about being a "lurker". :-) You'll likely be our source of >> a location to head to if we can't get a BoF space (which I think will >> suit us well). >> >> I look forward to seeing you, Matt, Ian, and whomever else comes. :-) >> >> Cheers, >> Ian >> > > > > -- > - eric casteleijn > > _______________________________________________ > code-quality mailing list > code-quality at python.org > https://mail.python.org/mailman/listinfo/code-quality > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahirnish at arista.com Thu Apr 14 05:05:51 2016 From: ahirnish at arista.com (Ahirnish Pareek) Date: Thu, 14 Apr 2016 14:35:51 +0530 Subject: [code-quality] Is it necessary to use python 3.x for patching something (and running tests) in pylint code-base? Message-ID: Hi Contributors, I am trying to patch something to the pylint code-base and I am running some tests to make sure there are no breakage. When I was running test_func.py in /test, I got this - Traceback (most recent call last): File "./test_func.py", line 27, in from pylint.testutils import (make_tests, LintTestUsingModule, LintTestUsingFile, File "/Users/ahirnish/pylint_patch/pylint/pylint/testutils.py", line 35, in import astroid File "/Users/ahirnish/pylint_patch/astroid/astroid/__init__.py", line 47, in import enum ImportError: No module named enum I am using Python 2.7 and when I searched for this error on Google, results said that 'enum' was introduced from Python3.4 but it was backported to previous releases too, including 2.7. Owing to the error, I did 'pip install enum' and now I am seeing this - Traceback (most recent call last): File "./test_func.py", line 27, in from pylint.testutils import (make_tests, LintTestUsingModule, LintTestUsingFile, File "/Users/ahirnish/pylint_patch/pylint/pylint/testutils.py", line 35, in import astroid File "/Users/ahirnish/pylint_patch/astroid/astroid/__init__.py", line 51, in Load = _Context.Load AttributeError: 'Enum' object has no attribute 'Load' This prompted me to ask if Python 3.x is required to run the tests in the pylint code-base? Or is there something very obvious I am missing here? Thanks in advance for clarification. -- Regards, Ahirnish -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at the-compiler.org Thu Apr 14 05:11:05 2016 From: me at the-compiler.org (Florian Bruhin) Date: Thu, 14 Apr 2016 11:11:05 +0200 Subject: [code-quality] Is it necessary to use python 3.x for patching something (and running tests) in pylint code-base? In-Reply-To: References: Message-ID: <20160414091105.GR13282@tonks> Hey, * Ahirnish Pareek [2016-04-14 14:35:51 +0530]: > I am using Python 2.7 and when I searched for this error on Google, results > said that 'enum' was introduced from Python3.4 but it was backported to > previous releases too, including 2.7. Owing to the error, I did 'pip > install enum' and now I am seeing this - The backport of Python 3.4's enum to earlier versions is called 'enum34'. The 'enum' package seems to be something different, which existed before Python 3.4. I can recommend using tox to run the tests instead, which will set up a virtualenv and install the right dependencies when you simply run 'tox': https://testrun.org/tox/ Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I'm running a crowdfunding to work on my FOSS-project full-time: http://igg.me/at/qutebrowser -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From strombrg at gmail.com Mon Apr 18 19:40:32 2016 From: strombrg at gmail.com (Dan Stromberg) Date: Mon, 18 Apr 2016 16:40:32 -0700 Subject: [code-quality] namedtuple? Message-ID: Did pylint's support for collections.namedtuple regress, or am I doing something silly? This code shows what I'm talking about: #!/usr/local/cpython-3.5/bin/python3 # pylint: disable=superfluous-parens '''Test if pylint can see into namedtuples yet''' from __future__ import print_function import collections class SimpleClass(object): '''Just a container: used to test if pylint sees we have no jkl member''' def __init__(self): self.abc = 5 self.ghi = 6 def main(): '''Main function''' named_tuple = collections.namedtuple('named_tuple', field_names='abc ghi') named_tuple.abc = 5 named_tuple.ghi = 6 print(named_tuple.abc) print(named_tuple.ghi) # This tracebacks, without a pylint warning print(named_tuple.jkl) simple_class = SimpleClass() print(simple_class.abc) print(simple_class.ghi) # pylint catches this one! print(simple_class.jkl) main() I'm using: $ /usr/local/cpython-3.5/bin/pylint --version No config file found, using default configuration pylint 1.5.4, astroid 1.4.4 Python 3.5.0 (default, Feb 8 2016, 13:56:41) [GCC 4.8.4] Should I be doing something differently? If it is a bug, where should I report it? I googled for about twenty minutes trying to find The Right Place, but came up with nothing. Thanks for the great tool! -- Dan Stromberg -------------- next part -------------- An HTML attachment was scrubbed... URL: From graffatcolmingov at gmail.com Mon Apr 18 20:19:41 2016 From: graffatcolmingov at gmail.com (Ian Cordasco) Date: Mon, 18 Apr 2016 19:19:41 -0500 Subject: [code-quality] namedtuple? In-Reply-To: References: Message-ID: Hi Dan, FYI, your posts to this will be moderated as we've dealt with spam in the past from non-members. As such there will likely be a lag between when you send the message, when I'm notified, and when I have the time (and am at a computer) to approve it. Please be patient :) On Mon, Apr 18, 2016 at 6:40 PM, Dan Stromberg wrote: > > Did pylint's support for collections.namedtuple regress, or am I doing > something silly? Did it regress in what way? > This code shows what I'm talking about: > > #!/usr/local/cpython-3.5/bin/python3 > > # pylint: disable=superfluous-parens > > '''Test if pylint can see into namedtuples yet''' > > from __future__ import print_function > > import collections > > class SimpleClass(object): > '''Just a container: used to test if pylint sees we have no jkl > member''' > def __init__(self): > self.abc = 5 > self.ghi = 6 > > def main(): > '''Main function''' > named_tuple = collections.namedtuple('named_tuple', field_names='abc > ghi') > named_tuple.abc = 5 > named_tuple.ghi = 6 > print(named_tuple.abc) > print(named_tuple.ghi) > # This tracebacks, without a pylint warning > print(named_tuple.jkl) > > simple_class = SimpleClass() > print(simple_class.abc) > print(simple_class.ghi) > # pylint catches this one! > print(simple_class.jkl) > > main() > > I'm using: > > $ /usr/local/cpython-3.5/bin/pylint --version > No config file found, using default configuration > pylint 1.5.4, > astroid 1.4.4 > Python 3.5.0 (default, Feb 8 2016, 13:56:41) > [GCC 4.8.4] > > Should I be doing something differently? > > If it is a bug, where should I report it? I googled for about twenty minutes > trying to find The Right Place, but came up with nothing. https://github.com/PyCQA/pylint or https://github.com/PyCQA/astroid would be the places to file bugs if you know where the problem exists. Cheers, Ian From strombrg at gmail.com Mon Apr 18 21:00:01 2016 From: strombrg at gmail.com (Dan Stromberg) Date: Mon, 18 Apr 2016 18:00:01 -0700 Subject: [code-quality] namedtuple? In-Reply-To: References: Message-ID: Hi Ian. I resent my message from another account, which I subscribed. Thanks. On Mon, Apr 18, 2016 at 5:19 PM, Ian Cordasco wrote: > Hi Dan, > > FYI, your posts to this will be moderated as we've dealt with spam in > the past from non-members. As such there will likely be a lag between > when you send the message, when I'm notified, and when I have the time > (and am at a computer) to approve it. Please be patient :) > > On Mon, Apr 18, 2016 at 6:40 PM, Dan Stromberg wrote: > > > > Did pylint's support for collections.namedtuple regress, or am I > doing > > something silly? > > Did it regress in what way? > > > This code shows what I'm talking about: > > > > #!/usr/local/cpython-3.5/bin/python3 > > > > # pylint: disable=superfluous-parens > > > > '''Test if pylint can see into namedtuples yet''' > > > > from __future__ import print_function > > > > import collections > > > > class SimpleClass(object): > > '''Just a container: used to test if pylint sees we have no jkl > > member''' > > def __init__(self): > > self.abc = 5 > > self.ghi = 6 > > > > def main(): > > '''Main function''' > > named_tuple = collections.namedtuple('named_tuple', > field_names='abc > > ghi') > > named_tuple.abc = 5 > > named_tuple.ghi = 6 > > print(named_tuple.abc) > > print(named_tuple.ghi) > > # This tracebacks, without a pylint warning > > print(named_tuple.jkl) > > > > simple_class = SimpleClass() > > print(simple_class.abc) > > print(simple_class.ghi) > > # pylint catches this one! > > print(simple_class.jkl) > > > > main() > > > > I'm using: > > > > $ /usr/local/cpython-3.5/bin/pylint --version > > No config file found, using default configuration > > pylint 1.5.4, > > astroid 1.4.4 > > Python 3.5.0 (default, Feb 8 2016, 13:56:41) > > [GCC 4.8.4] > > > > Should I be doing something differently? > > > > If it is a bug, where should I report it? I googled for about twenty > minutes > > trying to find The Right Place, but came up with nothing. > > https://github.com/PyCQA/pylint or https://github.com/PyCQA/astroid > would be the places to file bugs if you know where the problem exists. > > Cheers, > Ian > -- Dan Stromberg -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at the-compiler.org Wed Apr 20 07:04:47 2016 From: me at the-compiler.org (Florian Bruhin) Date: Wed, 20 Apr 2016 13:04:47 +0200 Subject: [code-quality] Is it necessary to use python 3.x for patching something (and running tests) in pylint code-base? In-Reply-To: References: <20160414091105.GR13282@tonks> Message-ID: <20160420110447.GM2984@tonks> Hey, (I Cc'ed the list again, as others might be able to help as well) * Ahirnish Pareek [2016-04-20 16:20:42 +0530]: > I tried your suggestion by installing and running tests with tox but I ran > into some errors. Would you mind giving me pointers to fix them? > > 1. ERROR: InvocationError: > '/Users/ahirnish/pylint_patch/pylint/.tox/py27/bin/python -Wi -m unittest > discover -s > /Users/ahirnish/pylint_patch/pylint/.tox/py27/lib/python2.7/site-packages/pylint/test/ > -p *test_*.py' > > Not able to figure out what InvocationError means? It simply means the things you asked tox to run did fail (i.e. exit with a nonzero status). The output above that should tell you why that happened. > 2. During running of /test/test_func.py, I got this - > File > "/Users/ahirnish/pylint_patch/pylint/.tox/py27/lib/python2.7/site-packages/pylint/test/test_func.py", > line 33, in > INPUT_DIR = join(dirname(abspath(__file__)), 'input') > NameError: name 'join' is not defined > > After grepping for 'join', I found that its defined in astroid folder. Do i > need to run tox in asteroid folder too? Is there anything extra I need to > do install/setup from asteroid folder in order to run tox in pylint > successfuly? I'm not sure how you came to that conclusion - the file simply does "from os.path import join": https://github.com/PyCQA/pylint/blob/master/pylint/test/test_func.py#L23 So if you didn't accidentally remove that import line somehow, I can't imagine how this would happen. Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I'm running a crowdfunding to work on my FOSS-project full-time: http://igg.me/at/qutebrowser -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: