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


Groups > comp.lang.python > #103832

Re: Reason for not allowing import twice but allowing reload()

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: Reason for not allowing import twice but allowing reload()
Date Tue, 1 Mar 2016 19:22:16 -0700
Lines 35
Message-ID <mailman.90.1456885378.20602.python-list@python.org> (permalink)
References <645cdd46-d4a4-49b3-a0d8-848608d70d73@googlegroups.com> <mailman.8.1456729298.2321.python-list@python.org> <56d57aa4$0$1586$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmoWMfW-5Pn=ZpcDp8nmAfYbHuAWea3T2mhRRi+_+hcyXA@mail.gmail.com> <CALwzidnUsX9HftTzk-5BqA_tNK0qCxi=zOmBWGWAS5mZzi3VzQ@mail.gmail.com> <CALwzidk49ZWX1ruHtVuhWQOumVmXJ0iV4zy1r-q1ny-Q8V6ygQ@mail.gmail.com> <CAPTjJmq_pB+CDBiH96o7SAsMVpK+Nfu5uuSh_sywuehE=cCE4Q@mail.gmail.com> <mailman.86.1456871434.20602.python-list@python.org> <56d63fb0$0$1618$c3e8da3$5496439d@news.astraweb.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de NsAbz62IUVXr/foDytmaBgTrq3QWLxtWRQJXRKssxUaw==
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'installed.': 0.05; 'important,': 0.07; 'mouse': 0.07; 'sake': 0.09; 'subject:()': 0.09; 'subject:not': 0.11; 'wed,': 0.15; '"critical"': 0.16; '2016': 0.16; 'desktop.': 0.16; 'laptop.': 0.16; 'leave.': 0.16; 'nudge': 0.16; 'reboot': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sits': 0.16; 'ssh': 0.16; 'subject:import': 0.16; 'two.': 0.16; 'wake': 0.16; 'wrote:': 0.16; 'network,': 0.18; 'fairly': 0.22; 'am,': 0.23; 'nearly': 0.23; 'patch': 0.24; 'header:In-Reply-To:1': 0.24; "i've": 0.25; "doesn't": 0.26; 'message-id:@mail.gmail.com': 0.27; 'catching': 0.29; 'crash': 0.29; 'ups': 0.29; "i'm": 0.30; 'screen': 0.32; 'though,': 0.32; 'run': 0.33; "d'aprano": 0.33; 'lock': 0.33; 'steven': 0.33; 'though.': 0.33; 'schedule': 0.34; 'tue,': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'ahead': 0.35; 'stable': 0.35; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'notes': 0.36; 'to:addr:python- list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'difference': 0.38; 'version': 0.38; 'received:209': 0.38; 'why': 0.39; 'sure': 0.39; 'does': 0.39; 'takes': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'some': 0.40; 'software': 0.40; 'determine': 0.61; 'making': 0.62; 'office': 0.62; 'policy': 0.63; 'between': 0.65; 'mar': 0.65; 'laptop': 0.67; 'hour': 0.69; 'power': 0.72; 'air,': 0.84; 'ever.': 0.84; 'macbook': 0.84; 'surface': 0.84; 'to:name:python': 0.84; 'uptime': 0.84; 'desk.': 0.91; 'good,': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Cbspm+TiQgGNec5fF3W9VoRgbR3YVt0XsJDSNja7Isk=; b=yZA29HsPPb3OfaZKRvBGQRRL0s0/WYevYO+ZJv9G1M/JT7Gk/ZGA9Lyr/wiosMv2nr i2LmgY3uQpAjV+Q3167nTTpAgA6VZLEzT9ZNKV/LcWBxZn2jm43MC8sFZ2jJ/qM1TgYO J0Nwsgeouve4EZ8Sm4BVuSWcc/2CHURgC7SAW93lRMzvregubDod4K1CH14gUDascKkB eZZ7LtTarA7+OB9cKgE2ecivoaQduucRNrYw58tLVQP41UYmp9mBICbQW3v/EUCr2LcI 87B+oQZ2kpybKj8fJ2ZfPWY4jZJB+9DkoWlOgh+LbBTCe84Z3zilzBANnXLJYOLqvw7m eZxQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Cbspm+TiQgGNec5fF3W9VoRgbR3YVt0XsJDSNja7Isk=; b=hMMlmnjkA+233BJF7K/tam01NIPgoDhdFHWUxc+MsRVu7uUdkqS2mmv1kjtF+F0LpR 4BgK+0FxrZs26n7e+wPjfowoKQFVxB7IsvE6UUBThIwMy90iliLNN2kwZpZmTm0JM5pP 4F4/mHqa266roGgnhaIbzah12dS7o1pme+5/dnTIFlo1tEYzWjfjwOdt/0zVRs5NM3Rp Qc1FWeDbYvKl25z1DuNfcLvmBbsRboEatOKW236QWZEtNVOuR685lbWYWxwwL2VIGjbj 6Wr9hl2MktOkmDynXohC0KTMlmz1neEZsgyyj8X01yvHT1uesDQB4DmFaGPTMfGzXr5J MCcw==
X-Gm-Message-State AG10YOTE8UX4RDsCfV4Rd3g48G701IfNHW3QsGtmBk8LlNwxychKKkWr8ggNFhHaEJ4lVmW87DfqPmrZ2+c6vg==
X-Received by 10.107.185.214 with SMTP id j205mr28449784iof.111.1456885376169; Tue, 01 Mar 2016 18:22:56 -0800 (PST)
In-Reply-To <56d63fb0$0$1618$c3e8da3$5496439d@news.astraweb.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
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>
Xref csiph.com comp.lang.python:103832

Show key headers only | View raw


On Tue, Mar 1, 2016 at 6:19 PM, Steven D'Aprano <steve@pearwood.info> wrote:
> On Wed, 2 Mar 2016 09:29 am, Ian Kelly wrote:
>
>> There's a big difference between
>> that and clocking a year of uptime just because you can, though.
>
> What other reason is there for having a year of uptime?
>
> It's not like it is difficult. My laptop doesn't actually go anywhere: for
> historical reasons, it's a laptop but it is (mostly) used as a desktop. It
> sits on my desk. If there's a power outage, the handy built-in UPS
> (battery) keeps it alive for an hour or two. I come in, I nudge the mouse
> to wake xscreensaver and authenticate; I do my work; then I run
> xscreensaver to lock the screen and leave.
>
> If I need access to something from home, I can SSH into the office network,
> and from there into the laptop.
>
> The OS is as stable as the surface of the moon, and simply doesn't crash or
> go down ever. (If only Firefox was as good, alas, but when it does crash it
> is nearly always because I've allowed Javascript to run on some popular,
> multimedia-rich, information-free website.) I don't reboot because I don't
> need to reboot. Why would you reboot just for the sake of rebooting?

Software updates? The nice thing about *nix systems is that *most*
updates don't require a reboot. I'm still going to reboot any time
there's a kernel update though, and those are fairly frequent. I could
read the patch notes to determine whether this new kernel version is
actually important, but it takes less of my time just to go ahead and
reboot.

With my company-owned Macbook Air, the security policy will eventually
schedule a *forced* reboot when there are "critical" updates to be
installed. Thankfully the scheduler is pretty good about making sure
it's not catching the user at an inopportune moment.

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


Thread

Reason for not allowing import twice but allowing reload() alien2utoo@gmail.com - 2016-02-28 22:40 -0800
  Re: Reason for not allowing import twice but allowing reload() Chris Angelico <rosuav@gmail.com> - 2016-02-29 18:01 +1100
    Re: Reason for not allowing import twice but allowing reload() Steven D'Aprano <steve@pearwood.info> - 2016-03-01 22:18 +1100
      Re: Reason for not allowing import twice but allowing reload() Chris Angelico <rosuav@gmail.com> - 2016-03-01 22:39 +1100
        Re: Reason for not allowing import twice but allowing reload() Steven D'Aprano <steve@pearwood.info> - 2016-03-02 04:11 +1100
          Re: Reason for not allowing import twice but allowing reload() Chris Angelico <rosuav@gmail.com> - 2016-03-02 05:04 +1100
      Re: Reason for not allowing import twice but allowing reload() Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-01 14:53 -0700
      Re: Reason for not allowing import twice but allowing reload() Chris Angelico <rosuav@gmail.com> - 2016-03-02 09:02 +1100
      Re: Reason for not allowing import twice but allowing reload() Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-01 15:29 -0700
        Re: Reason for not allowing import twice but allowing reload() Steven D'Aprano <steve@pearwood.info> - 2016-03-02 12:19 +1100
          Re: Reason for not allowing import twice but allowing reload() Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-01 19:22 -0700
            Re: Reason for not allowing import twice but allowing reload() Rustom Mody <rustompmody@gmail.com> - 2016-03-02 02:15 -0800
              Re: Reason for not allowing import twice but allowing reload() Rustom Mody <rustompmody@gmail.com> - 2016-03-02 02:19 -0800
            Re: Reason for not allowing import twice but allowing reload() Grant Edwards <invalid@invalid.invalid> - 2016-03-02 15:15 +0000
      Re: Reason for not allowing import twice but allowing reload() Chris Angelico <rosuav@gmail.com> - 2016-03-02 11:13 +1100
  Re: Reason for not allowing import twice but allowing reload() Ian Kelly <ian.g.kelly@gmail.com> - 2016-02-29 00:02 -0700
  Re: Reason for not allowing import twice but allowing reload() Chris Angelico <rosuav@gmail.com> - 2016-02-29 18:11 +1100
    Re: Reason for not allowing import twice but allowing reload() BartC <bc@freeuk.com> - 2016-02-29 15:33 +0000
      Re: Reason for not allowing import twice but allowing reload() Chris Angelico <rosuav@gmail.com> - 2016-03-01 03:05 +1100
  Correct IDLE usage (was Reason for not allowing import twice but allowing reload()) Rustom Mody <rustompmody@gmail.com> - 2016-02-29 04:42 -0800
    Re: Correct IDLE usage (was Reason for not allowing import twice but allowing reload()) Terry Reedy <tjreedy@udel.edu> - 2016-03-01 01:52 -0500
      Re: Correct IDLE usage (was Reason for not allowing import twice but allowing reload()) Rustom Mody <rustompmody@gmail.com> - 2016-03-02 07:22 -0800
        Re: Correct IDLE usage (was Reason for not allowing import twice but allowing reload()) Terry Reedy <tjreedy@udel.edu> - 2016-03-02 21:40 -0500
          Re: Correct IDLE usage (was Reason for not allowing import twice but allowing reload()) Rustom Mody <rustompmody@gmail.com> - 2016-03-02 20:07 -0800
            Re: Correct IDLE usage (was Reason for not allowing import twice but allowing reload()) Rustom Mody <rustompmody@gmail.com> - 2016-03-02 20:17 -0800
  Re: Reason for not allowing import twice but allowing reload() alien2utoo@gmail.com - 2016-02-29 05:00 -0800
  Re: Reason for not allowing import twice but allowing reload() alien2utoo@gmail.com - 2016-02-29 05:22 -0800
    Re: Reason for not allowing import twice but allowing reload() alien2utoo@gmail.com - 2016-02-29 05:25 -0800
      Re: Reason for not allowing import twice but allowing reload() Steven D'Aprano <steve@pearwood.info> - 2016-03-02 04:00 +1100
        Re: Reason for not allowing import twice but allowing reload() alien2utoo@gmail.com - 2016-03-05 04:51 -0800
          Re: Reason for not allowing import twice but allowing reload() Steven D'Aprano <steve@pearwood.info> - 2016-03-10 00:53 +1100
    Reason for not allowing import twice but allowing reload() Rustom Mody <rustompmody@gmail.com> - 2016-02-29 05:51 -0800
      Re: Reason for not allowing import twice but allowing reload() alien2utoo@gmail.com - 2016-02-29 07:13 -0800
    Re: Reason for not allowing import twice but allowing reload() Terry Reedy <tjreedy@udel.edu> - 2016-03-01 02:04 -0500
  Re: Reason for not allowing import twice but allowing reload() alien2utoo@gmail.com - 2016-03-06 00:20 -0800
    Re: Reason for not allowing import twice but allowing reload() Steven D'Aprano <steve@pearwood.info> - 2016-03-07 01:50 +1100
  Re: Reason for not allowing import twice but allowing reload() alien2utoo@gmail.com - 2016-03-06 00:31 -0800

csiph-web