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 though

.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 P

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 ! ;)

Re: twisted jabber and xmlstream

2005-05-04 Thread Sylvain Thenault
On Tue, 03 May 2005 17:05:46 +, Operation Latte Thunder wrote: > I am playing around with Jabber with Twisted. I can receive messages just > fine, and thats great, however, I am a bit confused about how to actually > _send_ messages. From what I've seen, I need to call send() on the > xmlstr

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

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 w

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&q

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 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 sc

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

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 valu

[ANN] PyLint 0.6

2005-01-21 Thread Sylvain Thenault
Hi there, I'm very pleased to announce the 0.6 release of PyLint. This release fix a lot of bugs and should be much more stable than the 0.5 release where stopping actual import of analyzed modules has been introduced (and that's really a huge improvment, since this was potentialy introducing some

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$ pytho

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: 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 advan

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 cor

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 2.3.

Re: weird behaviour of "0 in [] is False"

2004-11-30 Thread Sylvain Thenault
On Tue, 30 Nov 2004 14:18:30 +0100, Diez B. Roggisch wrote: > l = [] > 0 in (l is False) >> Traceback (most recent call last): >> File "", line 1, in ? >> TypeError: iterable argument required > > that should be clear - 0 in False can't work. yes, I forget to mention that it was the th

weird behaviour of "0 in [] is False"

2004-11-30 Thread Sylvain Thenault
Hi there ! Can someone explain me the following behaviour ? >>> l = [] >>> 0 in (l is False) Traceback (most recent call last): File "", line 1, in ? TypeError: iterable argument required >>> (0 in l) is False True >>> 0 in l is False False This is really obscur to me... -- Sylvain Thénault