REPOST: Re: Finding out that Python is in interactive mode in sitecustomize.py

Joseph A Knapka jknapka at earthlink.net
Thu Dec 27 17:29:20 EST 2001


Joonas Paalasmaa wrote:
> 
> How can I find out that Python is started in interactive mode in
> sitecustomize.py ?
> The need for that information is, that I want that certain
> customizations take place only at
> interactive mode.

I want to know the answer to this as well. My reason is, I
want the Anygui curses binding to disable itself if it
finds that it's being imported from an interactive shell,
since this has, er, unfortunate side effects.

FAQ-reading and random flailing about with my Wand of Google
have not been productive thus far...

Cheers,

-- Joe
"I should like to close this book by sticking out any part of my neck
 which is not yet exposed, and making a few predictions about how the
 problem of quantum gravity will in the end be solved."
 --- Physicist Lee Smolin, "Three Roads to Quantum Gravity"

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool0-milwwi.newsops.execpc.com!newsfeeds.sol.net!news-out.visi.com!hermes.visi.com!newsxfer.interpacket.net!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Joseph A Knapka <jknapka at earthlink.net>
Newsgroups: comp.lang.python
Subject: cmsg cancel <3C2B498E.2C53D822 at earthlink.net>
Control: cancel <3C2B498E.2C53D822 at earthlink.net>
Date: Mon, 31 Dec 2001 03:02:37 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.3C2B498E.2C53D822 at earthlink.net>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009775533 27193 211.57.49.2 (31 Dec 2001 05:12:13 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 05:12:13 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list