Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed4.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.052 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.01; 'exit': 0.09; 'restart': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Clearing': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'apparently': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'easily': 0.37; 'easiest': 0.38; 'how': 0.40; 'saw': 0.77; 'not...': 0.84; 'edwards': 0.91; 'recover': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=bdj5r68AFWz33jtg+8pKcXO3EN7XlD6QaaKTW6hekyw=; b=fbSuZGvTIsEJOiavVsUh1IUXCFLSvP1hGkrypPRdI+hQDtpKunT0m3+IckEMp1768c L/m+MMwlib2+c+/2iJ8R1Rmypp/qyqnhifymR1FBWQzRnrxH6Q5PRP0needBqVSrRidw cxooqkcsYNybawE+XBuPgEuKMzpgbfwCADITFVpuBusLMdqS0k9AKZIbExYQUmjRyWVi X+JQEkvXDlIeXF+M8BW6+6YPLYV7hWdQH6HxzFJzNyhfUUOxq1DtCpZQmsxUhbpGZ0wI MoagwuZ+p3c7GAMObLKkMkKGq5wQyiAbIMlf44+Sc07pWPDm8icgy7kQ+3EZWbX87hoi e+og== MIME-Version: 1.0 X-Received: by 10.43.94.7 with SMTP id bw7mr5513500icc.26.1412259169307; Thu, 02 Oct 2014 07:12:49 -0700 (PDT) In-Reply-To: References: <542c2527$0$13013$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 3 Oct 2014 00:12:49 +1000 Subject: Re: Clearing globals in CPython From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1412259179 news.xs4all.nl 2951 [2001:888:2000:d::a6]:48284 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78607 On Fri, Oct 3, 2014 at 12:07 AM, Grant Edwards wrote: > On 2014-10-01, Steven D'Aprano wrote: > >> Obviously the easiest way to recover is to exit the current session and >> restart it, but as a challenge, can we recover from this state? > > Python apparently _does_ need a "restart command". Apparently not... you saw how easily Peter recovered :) ChrisA