From: Jason Tishler <jason@tishler.net>
To: cygwin@cygwin.com
Cc: Olivier Lefevre <Olivier.Lefevre@biocrates.at>
Subject: Re: Antw: Re: Cygwin python 2.3 oddity
Date: Thu, 11 Sep 2003 15:39:00 -0000 [thread overview]
Message-ID: <20030911154315.GC888@tishler.net> (raw)
In-Reply-To: <sf60a5a9.034@t-c-c.at>
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 "<stdin>", 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/
next prev parent reply other threads:[~2003-09-11 15:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-11 14:54 Olivier Lefevre
2003-09-11 15:39 ` Jason Tishler [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-11 21:55 Olivier Lefevre
2003-09-11 21:58 ` Antw: Re: cygwin " Christopher Faylor
2003-09-12 14:49 ` Jason Tishler
[not found] <sf60b722.072@t-c-c.at>
2003-09-11 18:35 ` Antw: Re: Cygwin " Jason Tishler
2003-09-11 15:55 Olivier Lefevre
2003-09-11 17:28 ` Cliff Hones
[not found] <sf5fac54.018@t-c-c.at>
2003-09-11 14:16 ` Jason Tishler
2003-09-11 15:31 ` Antw: Re: cygwin " Christopher Faylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030911154315.GC888@tishler.net \
--to=jason@tishler.net \
--cc=Olivier.Lefevre@biocrates.at \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).