Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Re: Activating `-i' from inside a script?

Barry Warsawbarry@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


[8]ページ先頭

©2009-2026 Movatter.jp