Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78607

Re: Clearing globals in CPython

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 <rosuav@gmail.com>
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 <m0jm6s$pee$2@reader1.panix.com>
References <542c2527$0$13013$c3e8da3$5496439d@news.astraweb.com> <m0jm6s$pee$2@reader1.panix.com>
Date Fri, 3 Oct 2014 00:12:49 +1000
Subject Re: Clearing globals in CPython
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14553.1412259179.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, Oct 3, 2014 at 12:07 AM, Grant Edwards <invalid@invalid.invalid> wrote:
> On 2014-10-01, Steven D'Aprano <steve+comp.lang.python@pearwood.info> 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

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Clearing globals in CPython Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-02 02:00 +1000
  Re: Clearing globals in CPython Chris Angelico <rosuav@gmail.com> - 2014-10-02 02:14 +1000
  Re: Clearing globals in CPython Chris Kaynor <ckaynor@zindagigames.com> - 2014-10-01 10:08 -0700
  Re: Clearing globals in CPython Peter Otten <__peter__@web.de> - 2014-10-01 19:24 +0200
    Re: Clearing globals in CPython Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-02 18:11 +1000
      Re: Clearing globals in CPython Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-02 09:30 +0100
    Re: Clearing globals in CPython jakubo <jakubo@example.org> - 2014-10-06 09:05 +0000
      Re: Clearing globals in CPython Steven D'Aprano <steve@pearwood.info> - 2014-10-06 09:08 +0000
        Re: Clearing globals in CPython Chris Angelico <rosuav@gmail.com> - 2014-10-06 20:30 +1100
  Re: Clearing globals in CPython Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-01 19:17 +0100
  Re: Clearing globals in CPython Terry Reedy <tjreedy@udel.edu> - 2014-10-01 14:44 -0400
  Re: Clearing globals in CPython Marco Buttu <marco.buttu@gmail.com> - 2014-10-01 18:39 +0200
  Re: Clearing globals in CPython Grant Edwards <invalid@invalid.invalid> - 2014-10-02 14:07 +0000
    Re: Clearing globals in CPython Chris Angelico <rosuav@gmail.com> - 2014-10-03 00:12 +1000
    Re: Clearing globals in CPython Stefan Behnel <stefan_ml@behnel.de> - 2014-10-03 07:26 +0200

csiph-web