Re: pylint or similar to test version-specific language constructs?

2013-01-11 Thread thenault
On Thursday, January 10, 2013 12:45:32 AM UTC+1, jkn wrote: Hi all I have to write python code which must run on an old version of python (v2.4) as well as a newer (v2.7). I am using pylint and would like to check if is possible to check with pylint the use of operators etc. which

.pth files

2005-08-09 Thread Sylvain Thenault
Hi there ! I've some questions regarding pth files (which btw are undocumented in the python reference, is this intentional ?) I thought that I could use a .pth file to be able to import zope products from both INSTANCE_HOME/Products and ZOPE_HOME/lib/python/Products from outside zope: [EMAIL

Re: .pth files

2005-08-09 Thread Sylvain Thenault
On Tue, 09 Aug 2005 09:37:47 +, Adriano Varoli Piazza wrote: Sylvain Thenault ha scritto: Hi there ! I've some questions regarding pth files (which btw are undocumented in the python reference, is this intentional ?) I thought that I could use a .pth file to be able to import zope

Re: [ANN] pylint 0.7

2005-08-05 Thread Sylvain Thenault
On Thu, 04 Aug 2005 14:50:18 -0400, François Pinard wrote: [Sylvain Thénault] I'm pleased to announce a new release of PyLint. Bonjour Sylvain. J'ai la compulsion de dire bonjour, et merci! (On peut me tutoyer sans problème.) Bonjour ! C'est une compulsion plutôt sympathique ! ;) Ce

Re: Coding Standards (and Best Practices)

2005-04-27 Thread Sylvain Thenault
On Tue, 26 Apr 2005 11:02:33 -0700, Trent Mick wrote: [Isaac Rodriguez wrote] Hi, I am fairily new to Python, but I am really liking what I am seeing. My team is going to re-design some automation projects, and we were going to use Python as our programming language. One of the things we

connection refused when uploading a package to pypi

2005-04-14 Thread Sylvain Thenault
Hi ! I got a connection refused when I try to upload a package using python setup.py register. However login using the web interface works well. Does anyone has the same problem or is it a problem on my side ? [EMAIL PROTECTED]:pylint$ python setup.py register running register We need to know

Re: making symlinks with distutils

2005-02-04 Thread Sylvain Thenault
On Fri, 04 Feb 2005 02:45:34 -0800, Michele Simionato wrote: I want to distribute a pure Python package with this structure: mypackage __init__.py module1.py module2.py ... myexecutable.py In particular, myexecutable.py is a script which is

Re: making symlinks with distutils

2005-02-04 Thread Sylvain Thenault
On Fri, 04 Feb 2005 04:01:25 -0800, Michele Simionato wrote: From what I see in the docs, registering a script just normalize the shebang line, but does not install it in /usr/bin, nor make any symbolic links, so it is not what I am looking for. Actually it does install it is $PREFIX/bin. --

Re: making symlinks with distutils

2005-02-04 Thread Sylvain Thenault
On Fri, 04 Feb 2005 04:59:51 -0800, Michele Simionato wrote: Sylvain Thenault: Actually it does install it is $PREFIX/bin. Aha! And how do I set $PREFIX? Is it a Unix environment variable or is it a keyword argument in setup? Something like setup( prefix=/usr) ? it's a command line

Re: Next step after pychecker

2005-02-02 Thread Sylvain Thenault
On Tue, 01 Feb 2005 16:27:48 -0600, John Roth wrote: Sylvain Thenault [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 01 Feb 2005 05:18:12 +0100, Philippe Fremy wrote: Did you take a look at the starkiller [1] and pypy projects [2] ? Has anything happened to Starkiller

Re: Next step after pychecker

2005-02-01 Thread Sylvain Thenault
On Tue, 01 Feb 2005 05:18:12 +0100, Philippe Fremy wrote: Hi, Hi I would like to develop a tool that goes one step further than pychecker to ensure python program validity. The idea would be to get close to what people get on ocaml: a static verification of all types of the program,

Re: Maximum Number of Class Attributes

2005-01-26 Thread Sylvain Thenault
On Wed, 26 Jan 2005 02:03:12 +, Bob Parnes wrote: In its default configuration, my version of pylint (0.5.0) sets the maximum number of class attributes at 7. This seems low to me, but I can see how an excessive number might make maintenance more difficult. Is this indeed the best value

MemoryError with parser.suite and wrong encoding declaration

2005-01-18 Thread Sylvain Thenault
Hi there ! I've noticed the following problem with python = 2.3 (actually 2.3.4 and 2.4): [EMAIL PROTECTED]:test$ python Python 2.3.4 (#2, Sep 24 2004, 08:39:09) [GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2 Type help, copyright, credits or license for more information. import parser

Re: MemoryError with parser.suite and wrong encoding declaration

2005-01-18 Thread Sylvain Thenault
On Tue, 18 Jan 2005 16:16:32 +0100, Thomas Heller wrote: Sylvain Thenault [EMAIL PROTECTED] writes: Hi there ! I've noticed the following problem with python = 2.3 (actually 2.3.4 and 2.4): [EMAIL PROTECTED]:test$ python Python 2.3.4 (#2, Sep 24 2004, 08:39:09) [GCC 3.3.4 (Debian 1:3.3.4

Re: PyChecker messages

2005-01-11 Thread Sylvain Thenault
On Tue, 11 Jan 2005 06:54:54 +, Frans Englich wrote: Hello, Hi I take PyChecker partly as an recommender of good coding practice You may alos be interested by Pylint [1]. Pylint is less advanced in bug detection than pychecker, but imho its good coding practice detection is more

import with python -O

2004-12-30 Thread Sylvain Thenault
Hi there ! I'm usually relying on the fact that pyc file are autogenerated when necessary (ie usually when the py file has been modified since the pyc creation). However, it doesn't seems to work correctly when the -O option is given to the interpreter : [EMAIL PROTECTED]:test$ python Python

Re: import with python -O

2004-12-30 Thread Sylvain Thenault
On Thu, 30 Dec 2004 16:56:17 +0100, Sylvain Thenault wrote: Hi there ! I'm usually relying on the fact that pyc file are autogenerated when necessary (ie usually when the py file has been modified since the pyc creation). However, it doesn't seems to work correctly when the -O option