From davidhalter88 at gmail.com Mon Sep 4 17:50:55 2017 From: davidhalter88 at gmail.com (Dave Halter) Date: Mon, 4 Sep 2017 23:50:55 +0200 Subject: [code-quality] parso - A Python Parser - Initial Release Message-ID: Hi everyone Many of you might or might not have waited for Jedi's parser to be released, finally: https://github.com/davidhalter/parso https://parso.readthedocs.io/en/latest/ Features include: - Parsing each Python version in each Python version - Good Error Recovery - Round Trips - Finding multiple syntax/indentation errors per file - Finds all syntax errors, even the ones that CPython's ast.c, compile.c and others raise - Caching ~ Dave From kyrian010 at yahoo.com Fri Sep 8 09:10:10 2017 From: kyrian010 at yahoo.com (Kyrian Okoroama) Date: Fri, 8 Sep 2017 13:10:10 +0000 (UTC) Subject: [code-quality] Pylint path issues References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> Message-ID: <1074475412.5304347.1504876210632@mail.yahoo.com> Hi there I am totally new to programming language. However I am running the online free course on Alison on Python programming language, which I have installed according to instructions on the video but I having issues Debugging my first Hello World script.see attached files kindly help. Kyrian Okoroama .C. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screen shot.PNG Type: image/png Size: 84506 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: hello world.py URL: From graffatcolmingov at gmail.com Fri Sep 8 10:09:20 2017 From: graffatcolmingov at gmail.com (Ian Stapleton Cordasco) Date: Fri, 8 Sep 2017 09:09:20 -0500 Subject: [code-quality] Pylint path issues In-Reply-To: <1074475412.5304347.1504876210632@mail.yahoo.com> References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> Message-ID: Your IDE does not seem to be able to find where you installed Python. This has nothing to do with pylint Sent from my phone with my typo-happy thumbs. Please excuse my brevity On Sep 8, 2017 09:06, "Kyrian Okoroama via code-quality" < code-quality at python.org> wrote: > Hi there > > I am totally new to programming language. However I am running the online > free course on Alison on Python programming language, which I have > installed according to instructions on the video but I having issues > Debugging my first Hello World script. > see attached files > > kindly help. > > *Kyrian Okoroama .C.* > > > _______________________________________________ > 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 peter.bittner at gmx.net Fri Sep 8 11:49:58 2017 From: peter.bittner at gmx.net (Peter Bittner) Date: Fri, 8 Sep 2017 17:49:58 +0200 Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> Message-ID: Do you have Bash (a GNU/Linux shell) on your Windows machine? If that's the case start the Bash terminal application and type "python". Python should already be installed and easily accessible there from any directory. Peter 2017-09-08 16:09 GMT+02:00 Ian Stapleton Cordasco : > Your IDE does not seem to be able to find where you installed Python. This > has nothing to do with pylint > > Sent from my phone with my typo-happy thumbs. Please excuse my brevity > > On Sep 8, 2017 09:06, "Kyrian Okoroama via code-quality" > wrote: >> >> Hi there >> >> I am totally new to programming language. However I am running the online >> free course on Alison on Python programming language, which I have installed >> according to instructions on the video but I having issues Debugging my >> first Hello World script. >> see attached files >> >> kindly help. >> >> Kyrian Okoroama .C. >> >> >> _______________________________________________ >> code-quality mailing list >> code-quality at python.org >> https://mail.python.org/mailman/listinfo/code-quality >> > > _______________________________________________ > code-quality mailing list > code-quality at python.org > https://mail.python.org/mailman/listinfo/code-quality > From peter.bittner at gmx.net Fri Sep 8 12:25:59 2017 From: peter.bittner at gmx.net (Peter Bittner) Date: Fri, 8 Sep 2017 18:25:59 +0200 Subject: [code-quality] Pylint path issues In-Reply-To: <317247891.5453305.1504887550016@mail.yahoo.com> References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> Message-ID: If you can get hold of a computer running GNU/Linux, e.g. a machine running an Ubuntu desktop, that would be ideal. Windows is not ideal for developing software (well, that's my personal opinion). Especially the path issues you don't have on other systems. In my experience you have everything easily at hand with a GNU/Linux system. Ubuntu or Mint are lovely and very popular. Even a Mac is better suited, though that requires some hacking (installing a a package manager) to set more potential free. Try them, it will make your life so much easier. Peter 2017-09-08 18:19 GMT+02:00 Kyrian Okoroama : > Hi > > No I do not have those. > > Should I install them or one? > > > Kyrian Okoroama .C. > > > > On ?Friday?, ?September? ?8?, ?2017? ?05?:?50?:?31? ?PM? ?CEST, Peter > Bittner wrote: > > > Do you have Bash (a GNU/Linux shell) on your Windows machine? > > If that's the case start the Bash terminal application and type "python". > Python should already be installed and easily accessible there from any > directory. > > Peter > > > 2017-09-08 16:09 GMT+02:00 Ian Stapleton Cordasco > : >> Your IDE does not seem to be able to find where you installed Python. This >> has nothing to do with pylint >> >> Sent from my phone with my typo-happy thumbs. Please excuse my brevity >> >> On Sep 8, 2017 09:06, "Kyrian Okoroama via code-quality" >> wrote: >>> >>> Hi there >>> >>> I am totally new to programming language. However I am running the online >>> free course on Alison on Python programming language, which I have >>> installed >>> according to instructions on the video but I having issues Debugging my >>> first Hello World script. >>> see attached files >>> >>> kindly help. >>> >>> Kyrian Okoroama .C. >>> >>> >>> _______________________________________________ >>> code-quality mailing list >>> code-quality at python.org >>> https://mail.python.org/mailman/listinfo/code-quality > >>> >> >> _______________________________________________ >> code-quality mailing list >> code-quality at python.org >> https://mail.python.org/mailman/listinfo/code-quality >> From kyrian010 at yahoo.com Fri Sep 8 12:19:10 2017 From: kyrian010 at yahoo.com (Kyrian Okoroama) Date: Fri, 8 Sep 2017 16:19:10 +0000 (UTC) Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> Message-ID: <317247891.5453305.1504887550016@mail.yahoo.com> Hi No I do not have those. Should I install them or one? Kyrian Okoroama .C. On ?Friday?, ?September? ?8?, ?2017? ?05?:?50?:?31? ?PM? ?CEST, Peter Bittner wrote: Do you have Bash (a GNU/Linux shell) on your Windows machine? If that's the case start the Bash terminal application and type "python". Python should already be installed and easily accessible there from any directory. Peter 2017-09-08 16:09 GMT+02:00 Ian Stapleton Cordasco : > Your IDE does not seem to be able to find where you installed Python. This > has nothing to do with pylint > > Sent from my phone with my typo-happy thumbs. Please excuse my brevity > > On Sep 8, 2017 09:06, "Kyrian Okoroama via code-quality" > wrote: >> >> Hi there >> >> I am totally new to programming language. However I am running the online >> free course on Alison on Python programming language, which I have installed >> according to instructions on the video but I having issues Debugging my >> first Hello World script. >> see attached files >> >> kindly help. >> >> Kyrian Okoroama .C. >> >> >> _______________________________________________ >> code-quality mailing list >> code-quality at python.org >> https://mail.python.org/mailman/listinfo/code-quality >> > > _______________________________________________ > 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 graffatcolmingov at gmail.com Sat Sep 9 09:07:23 2017 From: graffatcolmingov at gmail.com (Ian Stapleton Cordasco) Date: Sat, 9 Sep 2017 08:07:23 -0500 Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> Message-ID: Windows is a fine developer environment and consistently getting better. Let's not discourage people from learning to cure on the operating systems they're already comfortable with. If you can't help them, don't try to make them learn yet another thing as a barrier to learning Python Sent from my phone with my typo-happy thumbs. Please excuse my brevity On Sep 8, 2017 11:31, "Peter Bittner" wrote: > If you can get hold of a computer running GNU/Linux, e.g. a machine > running an Ubuntu desktop, that would be ideal. > > Windows is not ideal for developing software (well, that's my personal > opinion). Especially the path issues you don't have on other systems. > In my experience you have everything easily at hand with a GNU/Linux > system. Ubuntu or Mint are lovely and very popular. Even a Mac is > better suited, though that requires some hacking (installing a a > package manager) to set more potential free. Try them, it will make > your life so much easier. > > Peter > > > 2017-09-08 18:19 GMT+02:00 Kyrian Okoroama : > > Hi > > > > No I do not have those. > > > > Should I install them or one? > > > > > > Kyrian Okoroama .C. > > > > > > > > On ?Friday?, ?September? ?8?, ?2017? ?05?:?50?:?31? ?PM? ?CEST, Peter > > Bittner wrote: > > > > > > Do you have Bash (a GNU/Linux shell) on your Windows machine? > > > > If that's the case start the Bash terminal application and type "python". > > Python should already be installed and easily accessible there from any > > directory. > > > > Peter > > > > > > 2017-09-08 16:09 GMT+02:00 Ian Stapleton Cordasco > > : > >> Your IDE does not seem to be able to find where you installed Python. > This > >> has nothing to do with pylint > >> > >> Sent from my phone with my typo-happy thumbs. Please excuse my brevity > >> > >> On Sep 8, 2017 09:06, "Kyrian Okoroama via code-quality" > >> wrote: > >>> > >>> Hi there > >>> > >>> I am totally new to programming language. However I am running the > online > >>> free course on Alison on Python programming language, which I have > >>> installed > >>> according to instructions on the video but I having issues Debugging my > >>> first Hello World script. > >>> see attached files > >>> > >>> kindly help. > >>> > >>> Kyrian Okoroama .C. > >>> > >>> > >>> _______________________________________________ > >>> code-quality mailing list > >>> code-quality at python.org > >>> https://mail.python.org/mailman/listinfo/code-quality > > > >>> > >> > >> _______________________________________________ > >> code-quality mailing list > >> code-quality at python.org > >> https://mail.python.org/mailman/listinfo/code-quality > >> > _______________________________________________ > 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 strombrg at gmail.com Sat Sep 9 12:30:19 2017 From: strombrg at gmail.com (Dan Stromberg) Date: Sat, 9 Sep 2017 09:30:19 -0700 Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> Message-ID: Windows improves somewhat in areas where it has a strong competitor. It lies fallow in areas where it has a majority of the marketshare. Windows is usable, but it's 3rd-rate software, after Linux and macOS. We should consider assisting Windows users on Windows, but there's nothing wrong with also reminding them that there are better alternatives available. On Sat, Sep 9, 2017 at 6:07 AM, Ian Stapleton Cordasco < graffatcolmingov at gmail.com> wrote: > Windows is a fine developer environment and consistently getting better. > Let's not discourage people from learning to cure on the operating systems > they're already comfortable with. If you can't help them, don't try to make > them learn yet another thing as a barrier to learning Python > > Sent from my phone with my typo-happy thumbs. Please excuse my brevity > > On Sep 8, 2017 11:31, "Peter Bittner" wrote: > >> If you can get hold of a computer running GNU/Linux, e.g. a machine >> running an Ubuntu desktop, that would be ideal. >> >> Windows is not ideal for developing software (well, that's my personal >> opinion). Especially the path issues you don't have on other systems. >> In my experience you have everything easily at hand with a GNU/Linux >> system. Ubuntu or Mint are lovely and very popular. Even a Mac is >> better suited, though that requires some hacking (installing a a >> package manager) to set more potential free. Try them, it will make >> your life so much easier. >> >> Peter >> >> >> 2017-09-08 18:19 GMT+02:00 Kyrian Okoroama : >> > Hi >> > >> > No I do not have those. >> > >> > Should I install them or one? >> > >> > >> > Kyrian Okoroama .C. >> > >> > >> > >> > On ?Friday?, ?September? ?8?, ?2017? ?05?:?50?:?31? ?PM? ?CEST, Peter >> > Bittner wrote: >> > >> > >> > Do you have Bash (a GNU/Linux shell) on your Windows machine? >> > >> > If that's the case start the Bash terminal application and type >> "python". >> > Python should already be installed and easily accessible there from any >> > directory. >> > >> > Peter >> > >> > >> > 2017-09-08 16:09 GMT+02:00 Ian Stapleton Cordasco >> > : >> >> Your IDE does not seem to be able to find where you installed Python. >> This >> >> has nothing to do with pylint >> >> >> >> Sent from my phone with my typo-happy thumbs. Please excuse my brevity >> >> >> >> On Sep 8, 2017 09:06, "Kyrian Okoroama via code-quality" >> >> wrote: >> >>> >> >>> Hi there >> >>> >> >>> I am totally new to programming language. However I am running the >> online >> >>> free course on Alison on Python programming language, which I have >> >>> installed >> >>> according to instructions on the video but I having issues Debugging >> my >> >>> first Hello World script. >> >>> see attached files >> >>> >> >>> kindly help. >> >>> >> >>> Kyrian Okoroama .C. >> >>> >> >>> >> >>> _______________________________________________ >> >>> code-quality mailing list >> >>> code-quality at python.org >> >>> https://mail.python.org/mailman/listinfo/code-quality >> > >> >>> >> >> >> >> _______________________________________________ >> >> code-quality mailing list >> >> code-quality at python.org >> >> https://mail.python.org/mailman/listinfo/code-quality >> >> >> _______________________________________________ >> code-quality mailing list >> code-quality at python.org >> https://mail.python.org/mailman/listinfo/code-quality >> > > _______________________________________________ > code-quality mailing list > code-quality at python.org > https://mail.python.org/mailman/listinfo/code-quality > > -- Dan Stromberg -------------- next part -------------- An HTML attachment was scrubbed... URL: From graffatcolmingov at gmail.com Sat Sep 9 15:25:36 2017 From: graffatcolmingov at gmail.com (Ian Stapleton Cordasco) Date: Sat, 9 Sep 2017 14:25:36 -0500 Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> Message-ID: On Sat, Sep 9, 2017 at 11:30 AM, Dan Stromberg wrote: > > Windows improves somewhat in areas where it has a strong competitor. > > It lies fallow in areas where it has a majority of the marketshare. > > Windows is usable, but it's 3rd-rate software, after Linux and macOS. > > We should consider assisting Windows users on Windows, but there's nothing > wrong with also reminding them that there are better alternatives available. > There's a difference between someone who comes to this list saying "I'm trying to run Pylint from my editor and I've followed some instructions for getting set up on Windows. Does anyone know why it doesn't work?" And someone saying "Hey, I'm having trouble doing python development on Windows. Is writing Python on Windows so awful I should switch to something else?" What we have here is someone asking the first question and getting an answer to the second question. In other words, you're telling the person that in order for them to develop software in Python they must use Linux (or a worst buy an inordinately expensive piece of aluminum with substandard hardware to get a variant of Unix) and that's not only wrong, it's downright exclusive. Put yet another way, answer the question the person actually asks, if you can. If you don't do windows development and you can't actually offer help, maybe just don't reply. > On Sat, Sep 9, 2017 at 6:07 AM, Ian Stapleton Cordasco > wrote: >> >> Windows is a fine developer environment and consistently getting better. >> Let's not discourage people from learning to cure on the operating systems >> they're already comfortable with. If you can't help them, don't try to make >> them learn yet another thing as a barrier to learning Python >> >> Sent from my phone with my typo-happy thumbs. Please excuse my brevity >> >> On Sep 8, 2017 11:31, "Peter Bittner" wrote: >>> >>> If you can get hold of a computer running GNU/Linux, e.g. a machine >>> running an Ubuntu desktop, that would be ideal. >>> >>> Windows is not ideal for developing software (well, that's my personal >>> opinion). Especially the path issues you don't have on other systems. >>> In my experience you have everything easily at hand with a GNU/Linux >>> system. Ubuntu or Mint are lovely and very popular. Even a Mac is >>> better suited, though that requires some hacking (installing a a >>> package manager) to set more potential free. Try them, it will make >>> your life so much easier. >>> >>> Peter >>> >>> >>> 2017-09-08 18:19 GMT+02:00 Kyrian Okoroama : >>> > Hi >>> > >>> > No I do not have those. >>> > >>> > Should I install them or one? >>> > >>> > >>> > Kyrian Okoroama .C. >>> > >>> > >>> > >>> > On ?Friday?, ?September? ?8?, ?2017? ?05?:?50?:?31? ?PM? ?CEST, Peter >>> > Bittner wrote: >>> > >>> > >>> > Do you have Bash (a GNU/Linux shell) on your Windows machine? >>> > >>> > If that's the case start the Bash terminal application and type >>> > "python". >>> > Python should already be installed and easily accessible there from any >>> > directory. >>> > >>> > Peter >>> > >>> > >>> > 2017-09-08 16:09 GMT+02:00 Ian Stapleton Cordasco >>> > : >>> >> Your IDE does not seem to be able to find where you installed Python. >>> >> This >>> >> has nothing to do with pylint >>> >> >>> >> Sent from my phone with my typo-happy thumbs. Please excuse my brevity >>> >> >>> >> On Sep 8, 2017 09:06, "Kyrian Okoroama via code-quality" >>> >> wrote: >>> >>> >>> >>> Hi there >>> >>> >>> >>> I am totally new to programming language. However I am running the >>> >>> online >>> >>> free course on Alison on Python programming language, which I have >>> >>> installed >>> >>> according to instructions on the video but I having issues Debugging >>> >>> my >>> >>> first Hello World script. >>> >>> see attached files >>> >>> >>> >>> kindly help. >>> >>> >>> >>> Kyrian Okoroama .C. >>> >>> >>> >>> >>> >>> _______________________________________________ >>> >>> code-quality mailing list >>> >>> code-quality at python.org >>> >>> https://mail.python.org/mailman/listinfo/code-quality >>> > >>> >>> >>> >> >>> >> _______________________________________________ >>> >> code-quality mailing list >>> >> code-quality at python.org >>> >> https://mail.python.org/mailman/listinfo/code-quality >>> >> >>> _______________________________________________ >>> code-quality mailing list >>> code-quality at python.org >>> https://mail.python.org/mailman/listinfo/code-quality >> >> >> _______________________________________________ >> code-quality mailing list >> code-quality at python.org >> https://mail.python.org/mailman/listinfo/code-quality >> > > > > -- > Dan Stromberg From amir at rachum.com Sat Sep 9 15:45:37 2017 From: amir at rachum.com (Amir Rachum) Date: Sat, 9 Sep 2017 22:45:37 +0300 Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> Message-ID: Kyrian, your problem seems very basic, and I'm afraid it would be quite difficult to help over email. I suggest you download the Python Windows Installer from the Python website: https://www.python.org/downloads/release/python-362/ After you install Python, try to search for "IDLE" in your Start menu. It's the built-in Python shell and editor on Windows. If you get it to work, then you installed Python correctly. *Peter and Dan*, there's "right" and there's "helpful" and you two are neither. Telling someone who was unsuccessful at installing Python on Windows to install Linux is just getting them deeper in trouble. I use both Linux and Windows for professional Python development and they are both adequate and most definitely not "3rd-rate software". On Sat, Sep 9, 2017 at 10:25 PM, Ian Stapleton Cordasco < graffatcolmingov at gmail.com> wrote: > On Sat, Sep 9, 2017 at 11:30 AM, Dan Stromberg wrote: > > > > Windows improves somewhat in areas where it has a strong competitor. > > > > It lies fallow in areas where it has a majority of the marketshare. > > > > Windows is usable, but it's 3rd-rate software, after Linux and macOS. > > > > We should consider assisting Windows users on Windows, but there's > nothing > > wrong with also reminding them that there are better alternatives > available. > > > > There's a difference between someone who comes to this list saying > > "I'm trying to run Pylint from my editor and I've followed some > instructions for getting set up on Windows. Does anyone know why it > doesn't work?" > > And someone saying > > "Hey, I'm having trouble doing python development on Windows. Is > writing Python on Windows so awful I should switch to something else?" > > What we have here is someone asking the first question and getting an > answer to the second question. In other words, you're telling the > person that in order for them to develop software in Python they must > use Linux (or a worst buy an inordinately expensive piece of aluminum > with substandard hardware to get a variant of Unix) and that's not > only wrong, it's downright exclusive. > > Put yet another way, answer the question the person actually asks, if > you can. If you don't do windows development and you can't actually > offer help, maybe just don't reply. > > > On Sat, Sep 9, 2017 at 6:07 AM, Ian Stapleton Cordasco > > wrote: > >> > >> Windows is a fine developer environment and consistently getting better. > >> Let's not discourage people from learning to cure on the operating > systems > >> they're already comfortable with. If you can't help them, don't try to > make > >> them learn yet another thing as a barrier to learning Python > >> > >> Sent from my phone with my typo-happy thumbs. Please excuse my brevity > >> > >> On Sep 8, 2017 11:31, "Peter Bittner" wrote: > >>> > >>> If you can get hold of a computer running GNU/Linux, e.g. a machine > >>> running an Ubuntu desktop, that would be ideal. > >>> > >>> Windows is not ideal for developing software (well, that's my personal > >>> opinion). Especially the path issues you don't have on other systems. > >>> In my experience you have everything easily at hand with a GNU/Linux > >>> system. Ubuntu or Mint are lovely and very popular. Even a Mac is > >>> better suited, though that requires some hacking (installing a a > >>> package manager) to set more potential free. Try them, it will make > >>> your life so much easier. > >>> > >>> Peter > >>> > >>> > >>> 2017-09-08 18:19 GMT+02:00 Kyrian Okoroama : > >>> > Hi > >>> > > >>> > No I do not have those. > >>> > > >>> > Should I install them or one? > >>> > > >>> > > >>> > Kyrian Okoroama .C. > >>> > > >>> > > >>> > > >>> > On ?Friday?, ?September? ?8?, ?2017? ?05?:?50?:?31? ?PM? ?CEST, Peter > >>> > Bittner wrote: > >>> > > >>> > > >>> > Do you have Bash (a GNU/Linux shell) on your Windows machine? > >>> > > >>> > If that's the case start the Bash terminal application and type > >>> > "python". > >>> > Python should already be installed and easily accessible there from > any > >>> > directory. > >>> > > >>> > Peter > >>> > > >>> > > >>> > 2017-09-08 16:09 GMT+02:00 Ian Stapleton Cordasco > >>> > : > >>> >> Your IDE does not seem to be able to find where you installed > Python. > >>> >> This > >>> >> has nothing to do with pylint > >>> >> > >>> >> Sent from my phone with my typo-happy thumbs. Please excuse my > brevity > >>> >> > >>> >> On Sep 8, 2017 09:06, "Kyrian Okoroama via code-quality" > >>> >> wrote: > >>> >>> > >>> >>> Hi there > >>> >>> > >>> >>> I am totally new to programming language. However I am running the > >>> >>> online > >>> >>> free course on Alison on Python programming language, which I have > >>> >>> installed > >>> >>> according to instructions on the video but I having issues > Debugging > >>> >>> my > >>> >>> first Hello World script. > >>> >>> see attached files > >>> >>> > >>> >>> kindly help. > >>> >>> > >>> >>> Kyrian Okoroama .C. > >>> >>> > >>> >>> > >>> >>> _______________________________________________ > >>> >>> code-quality mailing list > >>> >>> code-quality at python.org > >>> >>> https://mail.python.org/mailman/listinfo/code-quality > >>> > > >>> >>> > >>> >> > >>> >> _______________________________________________ > >>> >> code-quality mailing list > >>> >> code-quality at python.org > >>> >> https://mail.python.org/mailman/listinfo/code-quality > >>> >> > >>> _______________________________________________ > >>> code-quality mailing list > >>> code-quality at python.org > >>> https://mail.python.org/mailman/listinfo/code-quality > >> > >> > >> _______________________________________________ > >> code-quality mailing list > >> code-quality at python.org > >> https://mail.python.org/mailman/listinfo/code-quality > >> > > > > > > > > -- > > Dan Stromberg > _______________________________________________ > 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 strombrg at gmail.com Sat Sep 9 18:38:50 2017 From: strombrg at gmail.com (Dan Stromberg) Date: Sat, 9 Sep 2017 15:38:50 -0700 Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> Message-ID: On Sat, Sep 9, 2017 at 12:45 PM, Amir Rachum wrote: > Peter and Dan, there's "right" and there's "helpful" and you two are > neither. Telling someone who was unsuccessful at installing Python on > Windows to install Linux is just getting them deeper in trouble. I use > both Linux and Windows for professional Python development and they > are both adequate and most definitely not "3rd-rate software". Actually, there aren't many developers who argue For Windows. They mostly work at Microsoft or own Microsoft stock - or simply have little to no basis for comparison. Oh, and IT people - they love being told "Sorry, we can't do that - but then you don't really want to" by Microsoft because it gets the IT department off the hook. But most people who use Microsoft products don't do so because it's good software, they use it because "that's what everybody else is doing". I had the displeasure of working at Microsoft for a while; they acquired a Linux company I was working at. They didn't give me a title, BTW. Real Amusing. Anyway, if we hadn't had some sort of virtualization product, we would've had big problems, because Windows kept messing itself. We had to reset to an old snapshot several times a day on some projects. Then there's the matter of passing a quoted string to a subprocess on windows. It's a mess, because every command has to do argument splitting itself and the default implementation doesn't do it well. The arguments are actually passed as a single, flat string, rather than as distinct strings in an array. And there's the matter of getting a usable exit code back from a Windows subprocess; they're nearly 100% reliable on *ix, but on Windows they frequently don't mean what they should. PowerShell actually abandons exit(exit_code) and adds its own way of doing it to work around the problem. Then there's the "It's only good if it comes from Microsoft" mindset, which is condemning enough on its own. EG: I suggested that I do my work in Python, and they replied that no one knows Python (implying it was thus a bad choice), and saying that I had to work in PowerShell. Even IronPython wasn't good enough for them! That's right, they'd probably prefer it if Python just died, and we all worked in PowerShell or C#. They literally said, during an all hands meeting across the entire company, that they wanted All of Earth's important software to come from Microsoft - that was their goal. So yeah, if you work on an important software product, they want you out of business. If you're lucky you might get acquired. The hubris is astonishing. Also, I once saw Balmer accidentally tackle a woman in a televised meeting, and just keep running up onto the stage without so much as helping her back up. There's priorities for you. Also, a guy I used to play Go with once told me about being told "F*ck you!" by Paul Allen on Microsoft's support line - Paul Allen being one of Microsoft's founders. There's quality tech support for you. Not. Oh, and there was the time I commented that Microsoft filesystems don't support symlinks. I got a sour face in response... until I finished my sentence saying that the latest Microsoft filesystem did support them, by a different name. That wasn't good enough for our product, but suddenly symlinks mattered to this guy, and talking about their absence wasn't so bad. It's like an honest, candid discussion of technical merits was off limits. Then there's the problem of Microsoft tools mostly having non-columnar output. That really makes a mess of automatically parsing their output. I have extensive notes on the problems I encountered in PowerShell. Do I really need to trot them out? And do I need to mention that I used to be fascinated by language design and implementation? Oh, and lets not forget Microsoft zooming from no security in their filesystems at all, to a baroque, overengineered security system. *ix sits somewhere in the middle, and is used much more effectively by endusers. Like I said, Windows is usable, but it's far from equal to *ix (which includes Linux and macOS). Microsoft has a history of emphasizing profit over software quality, and the problems just get layered deeper and deeper. Because what "matters" is MS Office sales, not technical debt in our foundations. Not. Now, mind you: I didn't say "Use Linux instead" nor did I say "Install Linux today" - those are both strawperson arguments. I did, however, say that there are reasons to discuss switching to something better, both for the O.P. (today, someday, maybe never, but at least the O.P. is relatively known to be aware) and for the list as a whole. Also, you don't have to buy a whole new computer to run Linux - Windows does, as I already implied, passingly well with virtualization (hey, it appears to be better than FreeBSD at that - I've used Windows more than FreeBSD though, so I could be wrong), so you can just install VirtualBox (or VirtualPC, or whatever) and run Linux inside your Windows. But I didn't just say that primarily as a response to the O.P. I'm saying it primarily to you, Amir. PS: I used to have Microsoft options, as a condition of employment. I flipped them as soon they vested, despite the tax implications. And I only feel a little dirty for accepting their money. PPS: One of the guys Microsoft acquired along with me, said "Windows just sucks!" during his interview-that-wasn't-an-interview. They kept him anyway. Make of that what you will. -- Dan Stromberg -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.bittner at gmx.net Sat Sep 9 18:54:04 2017 From: peter.bittner at gmx.net (Peter Bittner) Date: Sun, 10 Sep 2017 00:54:04 +0200 Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> Message-ID: Sorry, just shaking my head about how so many, I guess, adult men (guessing again) can behave so childish. Let me ask the last childish question: Amir, are you sure Python is not installed yet on their computer? -- I don't know. But I know that if it is then asking them to use another IDE (instead of Visual Studio) is probably not much better than asking them to try to find Bash on their Windows system (hoping it was Windows X, sorry, 10, which I've been told now can incorporate Bash to make things easier for developers, Windows developers). No aluminum yet involved. Apart from the X. I meant to be polite. And I'm going to stay polite. And while I value freedom more, I respect either side of the trifold spectrum, just to be helpful. Because I care for learners. And I'm sure also Dan cares. Step back, stay respectful, because the Python community must prove that it respects diversity as much as beauty and simplicity. Beautiful is better than ugly, simple is better than complicated, pragmatism is better than fighting a religious war, and usability counts. Unfortunately there is not only one obvious way to fail on a complex system, though failing on Windows is much more fun. Unless you're Finnish. In the face of ambiguity refuse the temptation to suggest solutions that have not been asked for. Because when it's difficult to explain without hurting people who care for religion it may be a bad idea. The only good answer on this very mess was Ian's: This has nothing to do with Pylint. And while this may not be particularly helpful at first sight, this is the only appropriate answer on this list. Wishing you a wonderful weekend everyone, hoping to see you on the next PyCon. And may Saint Ignucius bless you all! Peter P.S.: If you get this twice, fear not! You have been blessed twice. Il 09/set/2017 21:46, "Amir Rachum" ha scritto: > Kyrian, your problem seems very basic, and I'm afraid it would be quite > difficult to help over email. I suggest you download the Python Windows > Installer from the Python website: > https://www.python.org/downloads/release/python-362/ > After you install Python, try to search for "IDLE" in your Start menu. > It's the built-in Python shell and editor on Windows. If you get it to > work, then you installed Python correctly. > > *Peter and Dan*, there's "right" and there's "helpful" and you two are > neither. Telling someone who was unsuccessful at installing Python on > Windows to install Linux is just getting them deeper in trouble. I use both > Linux and Windows for professional Python development and they are both > adequate and most definitely not "3rd-rate software". > > On Sat, Sep 9, 2017 at 10:25 PM, Ian Stapleton Cordasco < > graffatcolmingov at gmail.com> wrote: > >> On Sat, Sep 9, 2017 at 11:30 AM, Dan Stromberg >> wrote: >> > >> > Windows improves somewhat in areas where it has a strong competitor. >> > >> > It lies fallow in areas where it has a majority of the marketshare. >> > >> > Windows is usable, but it's 3rd-rate software, after Linux and macOS. >> > >> > We should consider assisting Windows users on Windows, but there's >> nothing >> > wrong with also reminding them that there are better alternatives >> available. >> > >> >> There's a difference between someone who comes to this list saying >> >> "I'm trying to run Pylint from my editor and I've followed some >> instructions for getting set up on Windows. Does anyone know why it >> doesn't work?" >> >> And someone saying >> >> "Hey, I'm having trouble doing python development on Windows. Is >> writing Python on Windows so awful I should switch to something else?" >> >> What we have here is someone asking the first question and getting an >> answer to the second question. In other words, you're telling the >> person that in order for them to develop software in Python they must >> use Linux (or a worst buy an inordinately expensive piece of aluminum >> with substandard hardware to get a variant of Unix) and that's not >> only wrong, it's downright exclusive. >> >> Put yet another way, answer the question the person actually asks, if >> you can. If you don't do windows development and you can't actually >> offer help, maybe just don't reply. >> >> > On Sat, Sep 9, 2017 at 6:07 AM, Ian Stapleton Cordasco >> > wrote: >> >> >> >> Windows is a fine developer environment and consistently getting >> better. >> >> Let's not discourage people from learning to cure on the operating >> systems >> >> they're already comfortable with. If you can't help them, don't try to >> make >> >> them learn yet another thing as a barrier to learning Python >> >> >> >> Sent from my phone with my typo-happy thumbs. Please excuse my brevity >> >> >> >> On Sep 8, 2017 11:31, "Peter Bittner" wrote: >> >>> >> >>> If you can get hold of a computer running GNU/Linux, e.g. a machine >> >>> running an Ubuntu desktop, that would be ideal. >> >>> >> >>> Windows is not ideal for developing software (well, that's my personal >> >>> opinion). Especially the path issues you don't have on other systems. >> >>> In my experience you have everything easily at hand with a GNU/Linux >> >>> system. Ubuntu or Mint are lovely and very popular. Even a Mac is >> >>> better suited, though that requires some hacking (installing a a >> >>> package manager) to set more potential free. Try them, it will make >> >>> your life so much easier. >> >>> >> >>> Peter >> >>> >> >>> >> >>> 2017-09-08 18:19 GMT+02:00 Kyrian Okoroama : >> >>> > Hi >> >>> > >> >>> > No I do not have those. >> >>> > >> >>> > Should I install them or one? >> >>> > >> >>> > >> >>> > Kyrian Okoroama .C. >> >>> > >> >>> > >> >>> > >> >>> > On ?Friday?, ?September? ?8?, ?2017? ?05?:?50?:?31? ?PM? ?CEST, >> Peter >> >>> > Bittner wrote: >> >>> > >> >>> > >> >>> > Do you have Bash (a GNU/Linux shell) on your Windows machine? >> >>> > >> >>> > If that's the case start the Bash terminal application and type >> >>> > "python". >> >>> > Python should already be installed and easily accessible there from >> any >> >>> > directory. >> >>> > >> >>> > Peter >> >>> > >> >>> > >> >>> > 2017-09-08 16:09 GMT+02:00 Ian Stapleton Cordasco >> >>> > : >> >>> >> Your IDE does not seem to be able to find where you installed >> Python. >> >>> >> This >> >>> >> has nothing to do with pylint >> >>> >> >> >>> >> Sent from my phone with my typo-happy thumbs. Please excuse my >> brevity >> >>> >> >> >>> >> On Sep 8, 2017 09:06, "Kyrian Okoroama via code-quality" >> >>> >> wrote: >> >>> >>> >> >>> >>> Hi there >> >>> >>> >> >>> >>> I am totally new to programming language. However I am running the >> >>> >>> online >> >>> >>> free course on Alison on Python programming language, which I have >> >>> >>> installed >> >>> >>> according to instructions on the video but I having issues >> Debugging >> >>> >>> my >> >>> >>> first Hello World script. >> >>> >>> see attached files >> >>> >>> >> >>> >>> kindly help. >> >>> >>> >> >>> >>> Kyrian Okoroama .C. >> >>> >>> >> >>> >>> >> >>> >>> _______________________________________________ >> >>> >>> code-quality mailing list >> >>> >>> code-quality at python.org >> >>> >>> https://mail.python.org/mailman/listinfo/code-quality >> >>> > >> >>> >>> >> >>> >> >> >>> >> _______________________________________________ >> >>> >> code-quality mailing list >> >>> >> code-quality at python.org >> >>> >> https://mail.python.org/mailman/listinfo/code-quality >> >>> >> >> >>> _______________________________________________ >> >>> code-quality mailing list >> >>> code-quality at python.org >> >>> https://mail.python.org/mailman/listinfo/code-quality >> >> >> >> >> >> _______________________________________________ >> >> code-quality mailing list >> >> code-quality at python.org >> >> https://mail.python.org/mailman/listinfo/code-quality >> >> >> > >> > >> > >> > -- >> > Dan Stromberg >> _______________________________________________ >> code-quality mailing list >> code-quality at python.org >> https://mail.python.org/mailman/listinfo/code-quality >> > > > _______________________________________________ > 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 peter at bittner.it Sat Sep 9 18:36:40 2017 From: peter at bittner.it (Peter Bittner) Date: Sun, 10 Sep 2017 00:36:40 +0200 Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> Message-ID: Sorry, just shaking my head about how so many, I guess, adult men (guessing again) can behave so childish. Let me ask the last childish question: Amir, are you sure Python is not installed yet on their computer? -- I don't know. But I know that if it is then asking them to use another IDE (instead of Visual Studio) is probably not much better than asking them to try to find Bash on their Windows system (hoping it was Windows X, sorry, 10, which I've been told now can incorporate Bash to make things easier for developers, Windows developers). No aluminum yet involved. Apart from the X. I meant to be polite. And I'm going to stay polite. And while I value freedom more, I respect either side of the trifold spectrum, just to be helpful. Because I care for learners. And I'm sure also Dan cares. Step back, stay respectful, because the Python community must prove that it respects diversity as much as beauty and simplicity. Beautiful is better than ugly, simple is better than complicated, pragmatism is better than fighting a religious war, and usability counts. Unfortunately there is not only one obvious way to fail on a complex system, though failing on Windows is much more fun. Unless you're Finnish. In the face of ambiguity refuse the temptation to suggest solutions that have not been asked for. Because when it's difficult to explain without hurting people who care for religion it may be a bad idea. The only good answer on this very mess was Ian's: This has nothing to do with Pylint. And while this may not be particularly helpful at first sight, this is the only appropriate answer on this list. Wishing you a wonderful weekend everyone, hoping to see you on the next PyCon. And may Saint Ignucius bless you all! Peter Il 09/set/2017 21:46, "Amir Rachum" ha scritto: > Kyrian, your problem seems very basic, and I'm afraid it would be quite > difficult to help over email. I suggest you download the Python Windows > Installer from the Python website: > https://www.python.org/downloads/release/python-362/ > After you install Python, try to search for "IDLE" in your Start menu. > It's the built-in Python shell and editor on Windows. If you get it to > work, then you installed Python correctly. > > *Peter and Dan*, there's "right" and there's "helpful" and you two are > neither. Telling someone who was unsuccessful at installing Python on > Windows to install Linux is just getting them deeper in trouble. I use both > Linux and Windows for professional Python development and they are both > adequate and most definitely not "3rd-rate software". > > On Sat, Sep 9, 2017 at 10:25 PM, Ian Stapleton Cordasco < > graffatcolmingov at gmail.com> wrote: > >> On Sat, Sep 9, 2017 at 11:30 AM, Dan Stromberg >> wrote: >> > >> > Windows improves somewhat in areas where it has a strong competitor. >> > >> > It lies fallow in areas where it has a majority of the marketshare. >> > >> > Windows is usable, but it's 3rd-rate software, after Linux and macOS. >> > >> > We should consider assisting Windows users on Windows, but there's >> nothing >> > wrong with also reminding them that there are better alternatives >> available. >> > >> >> There's a difference between someone who comes to this list saying >> >> "I'm trying to run Pylint from my editor and I've followed some >> instructions for getting set up on Windows. Does anyone know why it >> doesn't work?" >> >> And someone saying >> >> "Hey, I'm having trouble doing python development on Windows. Is >> writing Python on Windows so awful I should switch to something else?" >> >> What we have here is someone asking the first question and getting an >> answer to the second question. In other words, you're telling the >> person that in order for them to develop software in Python they must >> use Linux (or a worst buy an inordinately expensive piece of aluminum >> with substandard hardware to get a variant of Unix) and that's not >> only wrong, it's downright exclusive. >> >> Put yet another way, answer the question the person actually asks, if >> you can. If you don't do windows development and you can't actually >> offer help, maybe just don't reply. >> >> > On Sat, Sep 9, 2017 at 6:07 AM, Ian Stapleton Cordasco >> > wrote: >> >> >> >> Windows is a fine developer environment and consistently getting >> better. >> >> Let's not discourage people from learning to cure on the operating >> systems >> >> they're already comfortable with. If you can't help them, don't try to >> make >> >> them learn yet another thing as a barrier to learning Python >> >> >> >> Sent from my phone with my typo-happy thumbs. Please excuse my brevity >> >> >> >> On Sep 8, 2017 11:31, "Peter Bittner" wrote: >> >>> >> >>> If you can get hold of a computer running GNU/Linux, e.g. a machine >> >>> running an Ubuntu desktop, that would be ideal. >> >>> >> >>> Windows is not ideal for developing software (well, that's my personal >> >>> opinion). Especially the path issues you don't have on other systems. >> >>> In my experience you have everything easily at hand with a GNU/Linux >> >>> system. Ubuntu or Mint are lovely and very popular. Even a Mac is >> >>> better suited, though that requires some hacking (installing a a >> >>> package manager) to set more potential free. Try them, it will make >> >>> your life so much easier. >> >>> >> >>> Peter >> >>> >> >>> >> >>> 2017-09-08 18:19 GMT+02:00 Kyrian Okoroama : >> >>> > Hi >> >>> > >> >>> > No I do not have those. >> >>> > >> >>> > Should I install them or one? >> >>> > >> >>> > >> >>> > Kyrian Okoroama .C. >> >>> > >> >>> > >> >>> > >> >>> > On ?Friday?, ?September? ?8?, ?2017? ?05?:?50?:?31? ?PM? ?CEST, >> Peter >> >>> > Bittner wrote: >> >>> > >> >>> > >> >>> > Do you have Bash (a GNU/Linux shell) on your Windows machine? >> >>> > >> >>> > If that's the case start the Bash terminal application and type >> >>> > "python". >> >>> > Python should already be installed and easily accessible there from >> any >> >>> > directory. >> >>> > >> >>> > Peter >> >>> > >> >>> > >> >>> > 2017-09-08 16:09 GMT+02:00 Ian Stapleton Cordasco >> >>> > : >> >>> >> Your IDE does not seem to be able to find where you installed >> Python. >> >>> >> This >> >>> >> has nothing to do with pylint >> >>> >> >> >>> >> Sent from my phone with my typo-happy thumbs. Please excuse my >> brevity >> >>> >> >> >>> >> On Sep 8, 2017 09:06, "Kyrian Okoroama via code-quality" >> >>> >> wrote: >> >>> >>> >> >>> >>> Hi there >> >>> >>> >> >>> >>> I am totally new to programming language. However I am running the >> >>> >>> online >> >>> >>> free course on Alison on Python programming language, which I have >> >>> >>> installed >> >>> >>> according to instructions on the video but I having issues >> Debugging >> >>> >>> my >> >>> >>> first Hello World script. >> >>> >>> see attached files >> >>> >>> >> >>> >>> kindly help. >> >>> >>> >> >>> >>> Kyrian Okoroama .C. >> >>> >>> >> >>> >>> >> >>> >>> _______________________________________________ >> >>> >>> code-quality mailing list >> >>> >>> code-quality at python.org >> >>> >>> https://mail.python.org/mailman/listinfo/code-quality >> >>> > >> >>> >>> >> >>> >> >> >>> >> _______________________________________________ >> >>> >> code-quality mailing list >> >>> >> code-quality at python.org >> >>> >> https://mail.python.org/mailman/listinfo/code-quality >> >>> >> >> >>> _______________________________________________ >> >>> code-quality mailing list >> >>> code-quality at python.org >> >>> https://mail.python.org/mailman/listinfo/code-quality >> >> >> >> >> >> _______________________________________________ >> >> code-quality mailing list >> >> code-quality at python.org >> >> https://mail.python.org/mailman/listinfo/code-quality >> >> >> > >> > >> > >> > -- >> > Dan Stromberg >> _______________________________________________ >> code-quality mailing list >> code-quality at python.org >> https://mail.python.org/mailman/listinfo/code-quality >> > > > _______________________________________________ > 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 graffatcolmingov at gmail.com Sun Sep 10 08:44:30 2017 From: graffatcolmingov at gmail.com (Ian Stapleton Cordasco) Date: Sun, 10 Sep 2017 07:44:30 -0500 Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> Message-ID: For the benefit of others, and to avoid further off-topic, unprofessional rants, I've set a flag such that Dan's post must go through moderation to be posted to the list. I apologize to all of you for the vitriol and nonsense posted earlier. Cheers, Ian From bob at wrestingcontrol.com Sun Sep 10 21:19:38 2017 From: bob at wrestingcontrol.com (Bob Stodola) Date: Sun, 10 Sep 2017 21:19:38 -0400 Subject: [code-quality] Pylint path issues In-Reply-To: References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> Message-ID: <51923D2D-2C66-4215-915D-6D79287F94EC@wrestingcontrol.com> Many thanks, Ian. My young son sent letters to Congress and got more helpful and encouraging replies! With respect to your original comment (?This has nothing to do with pylint?), in fairness, I did want to note that once Kyrian gets his IDE hooked to python, I can confirm that pylint WILL detect the error in his code: Bob$ pylint -ry t.py ************* Module t E: 1, 0: invalid syntax (syntax-error) Bob$ So, Kyrian, once you get your stuff configured right, stick with pylint! It WILL save you lots of time! Cheers, Bob! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3675 bytes Desc: not available URL: From list at satchell.net Mon Sep 11 03:50:04 2017 From: list at satchell.net (Stephen Satchell) Date: Mon, 11 Sep 2017 00:50:04 -0700 Subject: [code-quality] Pylint path issues In-Reply-To: <51923D2D-2C66-4215-915D-6D79287F94EC@wrestingcontrol.com> References: <1074475412.5304347.1504876210632.ref@mail.yahoo.com> <1074475412.5304347.1504876210632@mail.yahoo.com> <317247891.5453305.1504887550016@mail.yahoo.com> <51923D2D-2C66-4215-915D-6D79287F94EC@wrestingcontrol.com> Message-ID: <45daeca7-024d-d982-e65e-323efdb09aa4@satchell.net> On 09/10/2017 06:19 PM, Bob Stodola wrote: > Many thanks, Ian. My young son sent letters to Congress and got more helpful and encouraging replies! Wish I could say the same. Every single letter I write to my Congress-critters yields a canned response that addresses nothing regarding the issues and questions in my letters. Phone calls to the 'critters offices are equally useless. To both Republicans and Democrats. > With respect to your original comment (?This has nothing to do with pylint?), in fairness, I did want to note that once Kyrian gets his IDE hooked to python, I can confirm that pylint WILL detect the error in his code: > > Bob$ pylint -ry t.py > ************* Module t > E: 1, 0: invalid syntax (syntax-error) > Bob$ I will say you made me look at the man page for pylint for the first time. Didn't see that "-r n" is an option, which can be useful when creating or reworking code and running pylint at frequent intervals. From razzi at abuissa.net Mon Sep 11 23:26:45 2017 From: razzi at abuissa.net (Razzi Abuissa) Date: Tue, 12 Sep 2017 03:26:45 +0000 Subject: [code-quality] Lint check for missing commas in list literal? In-Reply-To: References: <0101015d70de1f3a-c925e021-b5c5-4691-94d0-f40af05f0712-000000@us-west-2.amazonses.com> Message-ID: <0101015e741ff6a9-f43c09e8-00c9-40b2-9357-3f1fc13365a9-000000@us-west-2.amazonses.com> The trailing comma issue you linked is different, but it's good to know that can be detected as well! What I'd like to prevent is lists that look like ['A' 'B'] Which python interprets as ['AB'] In my experience ['A' 'B'] is a typo - ['A', 'B'] was intended. I discovered that the python AST module discards this kind of information - by the time the AST gets to flake8 it's impossible to tell there was ever implicit string concatenation, so there's nothing flake8 can do about this to my knowledge. If anybody is interested, here's a rough implementation as a standalone script that uses redbaron: https://github.com/razzius/redbaron-missing-comma-string-collection On Jul 24, 2017 4:07 AM, "Ian Stapleton Cordasco" < graffatcolmingov at gmail.com> wrote: On Sun, Jul 23, 2017 at 2:13 PM, Razzi Abuissa wrote: > Hi PyCQA, > > I've done a little searching but have not found a lint check for the > following: > > [ > 'a', > 'b' > 'c' > ] > > evaluates to ['a', 'bc'] due to implicit string concatenation, but usually > it's intended to be ['a', 'b', 'c']. If it is meant to be ['a', 'bc'] it's > bad style. > > Guido recommends popular lint tools add a rule for this here: > https://groups.google.com/forum/#!msg/python-ideas/jP1YtlyJq xs/FacZu-WK_9AJ > > If this check does not exist, I would be willing to create a flake8 plugin > and add it to PyCQA. > > Regards, > > Razzi Hi Razzi, This has been discussed here https://github.com/PyCQA/pycodestyle/issues/308 and there are a few plugins for Flake8 which do this: - https://pypi.org/project/flake8-commas/ - https://pypi.org/project/flake8-trailing-commas/ - https://pypi.org/project/flake8_strict/ You can find Flake8 plugins using this search on PyPI: https://pypi.org/search/?c=Framework+::+Flake8 Cheers, Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From jamesbroadhead at gmail.com Tue Sep 12 08:41:34 2017 From: jamesbroadhead at gmail.com (James Broadhead) Date: Tue, 12 Sep 2017 13:41:34 +0100 Subject: [code-quality] Lint check for missing commas in list literal? In-Reply-To: References: <0101015d70de1f3a-c925e021-b5c5-4691-94d0-f40af05f0712-000000@us-west-2.amazonses.com> Message-ID: @Daniel: Here's your code. https://twitter.com/lordmauve/status/718380935532670976 https://twitter.com/lordmauve/status/718449547786207233 I never made it into a pylint module :( On 24 July 2017 at 12:06, Daniel Pope wrote: > I have written that check previously - specifically for a missing comma in > a list-like context. I will see if I can find the code for it. > > On Mon, 24 Jul 2017, 12:01 Razzi Abuissa, wrote: > >> Hi PyCQA, >> >> I've done a little searching but have not found a lint check for the >> following: >> >> [ >> 'a', >> 'b' >> 'c' >> ] >> >> evaluates to ['a', 'bc'] due to implicit string concatenation, but >> usually it's intended to be ['a', 'b', 'c']. If it is meant to be ['a', >> 'bc'] it's bad style. >> >> Guido recommends popular lint tools add a rule for this here: >> https://groups.google.com/forum/#!msg/python-ideas/ >> jP1YtlyJqxs/FacZu-WK_9AJ >> >> If this check does not exist, I would be willing to create a flake8 >> plugin and add it to PyCQA. >> >> Regards, >> >> Razzi >> _______________________________________________ >> code-quality mailing list >> code-quality at python.org >> https://mail.python.org/mailman/listinfo/code-quality >> > > _______________________________________________ > 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 zack at upsilon.cc Fri Sep 15 10:58:56 2017 From: zack at upsilon.cc (Stefano Zacchiroli) Date: Fri, 15 Sep 2017 16:58:56 +0200 Subject: [code-quality] pylint3 ImportError when using PEP 420 namespaces Message-ID: <20170915145856.kretab77gav7nf2m@upsilon.cc> Heya, I'm trying to use pylint3 on a bunch of Python 3 modules that use PEP 420 implicit namespaces. All imports work just fine outside of pylint, but most of them fail with an ImportError within pylint and I don't understand why. My understanding from the issue tracker was that this issue should've been solved in the version of pylint I'm using. So either it's not, or I'm missing something :) A sample of the issues I'm facing is reported below. Advice welcome! zack at scaramouche:~$ pylint3 --version pylint3 1.7.2, astroid 1.5.3 Python 3.5.4 (default, Aug 12 2017, 14:08:14) [GCC 7.1.0] zack at scaramouche:~/swh/git/swh-environment/swh-model$ ls swh/model/ exceptions.py fields git.py hashutil.py identifiers.py __init__.py __pycache__ tests validators.py zack at scaramouche:~/swh/git/swh-environment/swh-model$ ls -l swh/model/__init__.py -rw-r--r-- 1 zack zack 0 ago 29 12:53 swh/model/__init__.py zack at scaramouche:~/swh/git/swh-environment/swh-model$ python3 Python 3.5.4 (default, Aug 12 2017, 14:08:14) [GCC 7.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import swh.model >>> import swh.model.git >>> import swh.model.hashutil >>> So all works well with "pure" python3. Now let's see with pylint3: zack at scaramouche:~/swh/git/swh-environment/swh-model$ pylint3 swh.model.hashutil > /dev/null zack at scaramouche:~/swh/git/swh-environment/swh-model$ pylint3 swh.model.git > /dev/null The above ones work, when loading leaf modules. Loading the upper module "swh.model" doesn't work though: zack at scaramouche:~/swh/git/swh-environment/swh-model$ pylint3 swh.model > /dev/null Traceback (most recent call last): File "/home/zack/bin/pylint3", line 11, in sys.exit(run_pylint()) File "/home/zack/.local/lib/python3.5/site-packages/pylint/__init__.py", line 13, in run_pylint Run(sys.argv[1:]) File "/home/zack/.local/lib/python3.5/site-packages/pylint/lint.py", line 1300, in __init__ linter.check(args) File "/home/zack/.local/lib/python3.5/site-packages/pylint/lint.py", line 726, in check self._do_check(files_or_modules) File "/home/zack/.local/lib/python3.5/site-packages/pylint/lint.py", line 837, in _do_check for descr in self.expand_files(files_or_modules): File "/home/zack/.local/lib/python3.5/site-packages/pylint/lint.py", line 869, in expand_files self.config.black_list_re) File "/home/zack/.local/lib/python3.5/site-packages/pylint/utils.py", line 894, in expand_modules modpath = _modpath_from_file(subfilepath, is_namespace) File "/home/zack/.local/lib/python3.5/site-packages/pylint/utils.py", line 833, in _modpath_from_file return modutils.modpath_from_file_with_callback(filename, is_package_cb=_is_package_cb) File "/home/zack/.local/lib/python3.5/site-packages/astroid/modutils.py", line 310, in modpath_from_file_with_callback filename, ', \n'.join(sys.path))) ImportError: Unable to find module for /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-model/swh/model/hashutil.py in /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-model, ., /home/zack/.local/bin, /home/zack/dati/projects/sw-heritage/git/swh-environment/swh-archiver, [ long list of PYTHONPATH entries snipped ] Any idea? Cheers. -- Stefano Zacchiroli . zack at upsilon.cc . upsilon.cc/zack . . o . . . o . o Computer Science Professor . CTO Software Heritage . . . . . o . . . o o Former Debian Project Leader & OSI Board Director . . . o o o . . . o . ? the first rule of tautology club is the first rule of tautology club ?