From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8635 invoked by alias); 11 Sep 2003 15:39:10 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8619 invoked from network); 11 Sep 2003 15:39:09 -0000 Received: from unknown (HELO sccrmhc11.comcast.net) (204.127.202.55) by sources.redhat.com with SMTP; 11 Sep 2003 15:39:09 -0000 Received: from althea (pcp04244714pcs.eatntn01.nj.comcast.net[68.36.183.225](untrusted sender)) by comcast.net (sccrmhc11) with ESMTP id <2003091115390801100m0v1ve>; Thu, 11 Sep 2003 15:39:08 +0000 Received: from [127.0.0.1] (helo=althea.tishler.net) by althea with smtp (Exim 4.12) id HL23O4-00018K-00; Thu, 11 Sep 2003 11:43:16 -0400 Received: by althea.tishler.net (sSMTP sendmail emulation); Thu, 11 Sep 2003 11:43:16 -0400 Date: Thu, 11 Sep 2003 15:39:00 -0000 From: Jason Tishler To: cygwin@cygwin.com Cc: Olivier Lefevre Subject: Re: Antw: Re: Cygwin python 2.3 oddity Message-ID: <20030911154315.GC888@tishler.net> Mail-Followup-To: cygwin@cygwin.com, Olivier Lefevre References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-SW-Source: 2003-09/txt/msg00680.txt.bz2 Olivier, On Thu, Sep 11, 2003 at 04:41:04PM +0200, Olivier Lefevre wrote: > bash-2.05b$ ls -ls `echo $PYTHONSTARTUP` > 1.0k -rw-rw-rw- 1 Administ None 22 Sep 11 16:34 > /c/cygwin/startup.py Why is the above "/c/cygwin/startup.py" and not "/startup.py" as you previously indicated? > I know it isn't read because it contains the line 'from sets import > Set' but > > bash-2.05b$ python > Python 2.3 (#1, Aug 1 2003, 15:01:23) > [GCC 3.2 20020927 (prerelease)] on cygwin > Type "help", "copyright", "credits" or "license" for more information. > >>> Set() > Traceback (most recent call last): > File "", line 1, in ? > NameError: name 'Set' is not defined > > yet the sets module can be found: > > >>> from sets import Set > >>> Set() > Set([]) > >>> > > So at this point I am really mystified. I cannot explain the above behavior. FWIW, the following works: $ cat /tmp/.pythonrc.py print '*** startup executed ***' $ PYTHONSTARTUP=/tmp/.pythonrc.py python Python 2.3 (#1, Aug 5 2003, 09:49:11) [GCC 3.2 20020927 (prerelease)] on cygwin Type "help", "copyright", "credits" or "license" for more information. *** startup executed *** >>> BTW, I just noticed that you are using Cygwin Python 2.3-1. Does 2.3-2 work any better? The two packages are identical except for 32- vs. 64-bit, but maybe this is the difference? Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/