A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-June/036613.html below:

Activating `-i' from inside a script?

[Python-Dev] Re: Activating `-i' from inside a script? [Python-Dev] Re: Activating `-i' from inside a script?Barry Warsaw barry@python.org
29 Jun 2003 13:07:27 -0400
On Sat, 2003-06-28 at 17:40, Guido van Rossum wrote:

> > I can't see that it would affect the functioning of any programs other than
> > those which set PYTHONINSPECT now.  (But why would they do that and what's
> > the likelihood such programs exist?)
> > 
> > Any chance this could be squeezed in?  It seems rather elegant:
> > 
> >     try:
> >         something which fails
> >     except:
> >         os.environ["PYTHONINSPECT"] = 1
> >         raise
> > 
> > (I know we're at beta1, and the programmer could re-run with -i.  But
> > still...)
> 
> Looks harmless to me.  Thomas Heller's alternative really does
> something different.  Skip can check it in.

I just committed this for 2.3b2.

-Barry





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4