Re: [Python-projects] pylint suggestion lower vs lower()

2010-02-05 Thread Alexandre Fayolle
On Friday 05 February 2010 08:21:24 Sylvain Thénault wrote: > > Could one of you add a ticket? > https://www.logilab.net/elo/ticket/20138 -- Alexandre Fayolle LOGILAB, Paris (France) Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations Développem

Re: [Python-projects] pylint suggestion lower vs lower()

2010-02-04 Thread Sylvain Thénault
On 04 février 15:33, Alexandre Fayolle wrote: > On Thursday 04 February 2010 15:13:14 Diez B. Roggisch wrote: > > On Thursday 04 February 2010 14:15:33 Sam Tygier wrote: > > > i wonder if pylint could be made to spot the following error > > > > > > if ans.lower in ["yes", "y"]: > > > > > > where th

Re: [Python-projects] pylint suggestion lower vs lower()

2010-02-04 Thread Alexandre Fayolle
On Thursday 04 February 2010 15:13:14 Diez B. Roggisch wrote: > On Thursday 04 February 2010 14:15:33 Sam Tygier wrote: > > hello > > > > i wonder if pylint could be made to spot the following error > > > > if ans.lower in ["yes", "y"]: > > > > where the function is compared, rather than calling th

Re: [Python-projects] pylint suggestion lower vs lower()

2010-02-04 Thread Diez B. Roggisch
On Thursday 04 February 2010 14:15:33 Sam Tygier wrote: > hello > > i wonder if pylint could be made to spot the following error > > if ans.lower in ["yes", "y"]: > > where the function is compared, rather than calling the function and > comparing the result. > > maybe it could check for any compar

[Python-projects] pylint suggestion lower vs lower()

2010-02-04 Thread Sam Tygier
hello i wonder if pylint could be made to spot the following error if ans.lower in ["yes", "y"]: where the function is compared, rather than calling the function and comparing the result. maybe it could check for any comparison between a function and a literal. thanks sam ___

Re: [Python-projects] pylint suggestion

2009-12-31 Thread Jonathan Hartley
Hey Philip, A fix for problem (1) is currently being discussed by people cleverer than I, and hopefully will be released fairly soon. For the moment, you can work around it by editing your Python2x\Scripts\pylint.bat, and changing the statement: exit(ERRORVALUE) to say exit /B (ERRO

Re: [Python-projects] pylint suggestion

2009-12-30 Thread Jonathan Hartley
Daniel's pylint.bat works fine for me, WindowsXP, Python 2.6.4. Jonathan Hartley Made of meat. http://tartley.com tart...@tartley.com +44 7737 062 225 twitter/skype: tartley On 29/12/2009 22:00, Daniel Harding wrote: Pierre Rouleau wrote: Unfortunately, the pylint.bat file as

Re: [Python-projects] pylint suggestion

2009-12-28 Thread Pierre Rouleau
2009/12/28 Nicolas Chauvat > On Thu, Dec 24, 2009 at 08:12:42PM +, Daniel Harding wrote: > >> Could pylint.bat look for a command line parameter to determine which > >> behaviour is wanted? > > > > [...] > > > > I have attached an implementation of pylint.bat which calls exit only if > > Than

Re: [Python-projects] pylint suggestion

2009-12-28 Thread Nicolas Chauvat
On Thu, Dec 24, 2009 at 08:12:42PM +, Daniel Harding wrote: >> Could pylint.bat look for a command line parameter to determine which >> behaviour is wanted? > > [...] > > I have attached an implementation of pylint.bat which calls exit only if Thank you Daniel, Pierre and Jonathan, This i

Re: [Python-projects] pylint suggestion

2009-12-23 Thread Pierre Rouleau
2009/12/23 Jonathan Hartley > > Could pylint.bat look for a command line parameter to determine which > behaviour is wanted? > > The ensuing Python portion of pylint could just ignore this parameter if it > finds it. > > If this was acceptable, I'd vote for the default behaviour, ie invoking: > >

Re: [Python-projects] pylint suggestion

2009-12-23 Thread Jonathan Hartley
On 23/12/2009 19:41, Pierre Rouleau wrote: 2009/12/23 Daniel Harding mailto:dhard...@gmail.com>> Pierre Rouleau wrote: > > However, I wonder why we use a batch file to launch pylint. Why not > write a python script that would be called pylint.py stored inside > the Scrip

Re: [Python-projects] pylint suggestion

2009-12-23 Thread Pierre Rouleau
2009/12/23 Daniel Harding > > Pierre Rouleau wrote: > > > > > However, I wonder why we use a batch file to launch pylint. Why not > > write a python script that would be called pylint.py stored inside > > the Scripts directory? Under Windows, if the .py extension is listed > > in PATHEXT then yo

Re: [Python-projects] pylint suggestion

2009-12-23 Thread Daniel Harding
Pierre Rouleau wrote: > > On 16-Dec-09, at 9:04 AM, Amaury Forgeot d'Arc wrote: > >> 2009/12/16 Daniel Harding > > >>> >>> okko.willeboor...@imtech.nl >>> wrote: >>> When I run pylint through pylint.bat I do not get the return co

Re: [Python-projects] pylint suggestion

2009-12-18 Thread Pierre Rouleau
On 16-Dec-09, at 9:04 AM, Amaury Forgeot d'Arc wrote: 2009/12/16 Daniel Harding okko.willeboor...@imtech.nl wrote: When I run pylint through pylint.bat I do not get the return code of pylint. pylint.bat always returns 0 Could you please add 'exit(ERRORLEVEL)' after the exit: label to so

Re: [Python-projects] pylint suggestion

2009-12-16 Thread Amaury Forgeot d'Arc
2009/12/16 Daniel Harding > okko.willeboor...@imtech.nl wrote: > >> >> When I run pylint through pylint.bat I do not get the return code of >> pylint. >> pylint.bat always returns 0 >> >> Could you please add 'exit(ERRORLEVEL)' after the exit: label to solve >> this? >> > > This change was made i

Re: [Python-projects] pylint suggestion

2009-12-16 Thread Daniel Harding
okko.willeboor...@imtech.nl wrote: When I run pylint through pylint.bat I do not get the return code of pylint. pylint.bat always returns 0 Could you please add 'exit(ERRORLEVEL)' after the exit: label to solve this? This change was made in changeset 75fca2f13e26 and released in pylint 0.18.1

Re: [Python-projects] pylint suggestion

2009-07-21 Thread Alexandre Fayolle
Le Tuesday 21 July 2009 16:26:37 okko.willeboor...@imtech.nl, vous avez écrit : > Hello, > > When I run pylint through pylint.bat I do not get the return code of > pylint. pylint.bat always returns 0 > > Could you please add 'exit(ERRORLEVEL)' after the exit: label to solve > this? This has been

[Python-projects] pylint suggestion

2009-07-21 Thread Okko . Willeboordse
Hello,When I run pylint through pylint.bat I do not get the return code of pylint.pylint.bat always returns 0Could you please add 'exit(ERRORLEVEL)' after the exit: label to solve this?My pylint.bat now looks like (additions are bold);@echo offrem = """-*-Python-*- scriptrem DO