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


Groups > comp.lang.python > #78748

Re: Clearing globals in CPython

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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.025
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'modifies': 0.09; 'cc:addr :python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'invoking': 0.16; 'subject:Clearing': 0.16; 'weird.': 0.16; 'words.': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'installed': 0.27; 'message- id:@mail.gmail.com': 0.30; 'work.': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'received:google.com': 0.35; 'pm,': 0.38; 'does': 0.39; 'extremely': 0.39; 'confirm': 0.64; '3.4': 0.84; '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=nkEXV1Yz+9IEFRJedR8Ng5FnNx9NfznAlc//RbFps0g=; b=hPt4B72iVmDzCXjzfaZ3clcgP3IjzDEHAoitjkA0mR5QSTh8wv+sXRajijCXpeTXnM Bhidp8fJH6SEMm++EO7f574QgXmXFJuxKBlfTCMpr7FkcNaAxOFZDQ+Y1a2rfRL6UJTZ G1qn8S8zK1b6Jv6wsM7yHJ7iL21FKItcoMXYAyPBptkwYN2jDHiecNoWZDjrx8IHhX1l OpWroWDwdNzQW7N80xcpp6j3tm0/wRc3hPtLZLgoBv6hWB2GPCl7k+qx4SsKN22Q4oBV c+3Io7it1uWhl+ctPTN2r6KCceB/Q+sTJvqt8Lrem1g7wZKPnH350BZVoTyQ1jWYFvD8 1eug==
MIME-Version 1.0
X-Received by 10.43.94.7 with SMTP id bw7mr31182988icc.26.1412587830730; Mon, 06 Oct 2014 02:30:30 -0700 (PDT)
In-Reply-To <54325c1e$0$2916$c3e8da3$76491128@news.astraweb.com>
References <542c2527$0$13013$c3e8da3$5496439d@news.astraweb.com> <mailman.14526.1412184262.18130.python-list@python.org> <m0tm0d$j39$1@speranza.aioe.org> <54325c1e$0$2916$c3e8da3$76491128@news.astraweb.com>
Date Mon, 6 Oct 2014 20:30:30 +1100
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.14631.1412587839.18130.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1412587839 news.xs4all.nl 2843 [2001:888:2000:d::a6]:43578
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78748

Show key headers only | View raw


On Mon, Oct 6, 2014 at 8:08 PM, Steven D'Aprano <steve@pearwood.info> wrote:
> On Mon, 06 Oct 2014 09:05:17 +0000, jakubo wrote:
>
>> After invoking autocompletion (.__ and hitting tab), session has been
>> automagically healed.
>
>
> That's ... um ...
>
> I have no words.
>
>
> Can you confirm that autocompletion modifies globals()? I don't have 3.4
> installed here.

I can confirm that the trick does work. That's... extremely weird.

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