Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.098 X-Spam-Evidence: '*H*': 0.81; '*S*': 0.00; 'badly': 0.09; 'exception,': 0.09; 'wrote:': 0.18; 'example': 0.22; 'header:User- Agent:1': 0.23; 'script.': 0.24; 'skip:" 20': 0.27; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'flying': 0.31; 'running': 0.33; 'something': 0.35; 'sometimes': 0.38; 'process,': 0.38; 'handle': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'charset:windows-1252': 0.65; 'received:74.208': 0.68; 'worthwhile.': 0.84 Date: Mon, 11 May 2015 07:57:01 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Feature Request: Reposition Execution References: <2d482$5550967d$5419aafe$27910@news.ziggo.nl> In-Reply-To: <2d482$5550967d$5419aafe$27910@news.ziggo.nl> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:s7ju1uVs08smmH59CgqWFRfZOE+YjsmzDQmCKi2BpuEhxMsij4x StJOvrZr/vobZsgvfEV4GqJOOSrTkmnZy4iGT8z6pk0dKUi9q8zlSvLcFHe1o3OYapn8ePK lqNv0R5zy6bVPEQ8/cccLNbmdkUThu5gbm/mrHcovTPqIILPAvGQXVqpCp7WxrZ2YxtW+qK 9HgV/psJ8FxI1usMr4GTQ== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431345441 news.xs4all.nl 2869 [2001:888:2000:d::a6]:34408 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90366 On 05/11/2015 07:46 AM, Skybuck Flying wrote: > Hello, > > Sometimes it can be handy to "interrupt/reset/reposition" a running script. > > For example something externally goes badly wrong. > os.kill() then in your process, handle the exception, and do whatever you think is worthwhile. -- DaveA