Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #103788
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Reason for not allowing import twice but allowing reload() |
| Date | Tue, 1 Mar 2016 22:39:36 +1100 |
| Lines | 13 |
| Message-ID | <mailman.61.1456832379.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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de W6x2abjEZModtHP/DIwRmAg7kKjgex7LiypWNH2v0QvQ== |
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'that?': 0.05; 'imply': 0.07; 'modifying': 0.07; 'cc:addr :python-list': 0.09; 'subject:()': 0.09; 'python': 0.10; 'subject:not': 0.11; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hits': 0.16; 'modules,': 0.16; 'received:209.85.223.173': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:import': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'code,': 0.23; 'code.': 0.23; 'import': 0.24; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'message-id:@mail.gmail.com': 0.27; 'restart': 0.29; 'code': 0.30; 'anyone': 0.32; 'possibly': 0.32; "d'aprano": 0.33; 'steven': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'done': 0.35; 'sometimes': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'mean': 0.38; 'why': 0.39; 'your': 0.60; 'mar': 0.65; 'wanting': 0.66; 'production': 0.67; 'chrisa': 0.84; 'uptime': 0.84; 'to:none': 0.91; 'thing,': 0.93; 'insane': 0.95; 'imagine': 0.96 |
| 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; bh=RY3rpJWaB7wK+b3VIm0aZOLGoiAhEK4YPlSLN8hB2u0=; b=ND4Do5IQfE8jZYNp/r6wRJHM0lTkwSEfbeLaINBIrg1+l3e5r/2Z7hPJVxs/yp+h3Y iVTBefKhCuyHOQbab4a/Tv9aV1m26d2/uEiG1fV3USpRRIigf4sBk0jOejHSHWooFk/w TJua4NLcGKHnpeVakZ4+1kAIMZTwDq21ZlP7t8BGOnhD6vQoDF1DDkT6xWOVISsSRrRk nC1/cy7HJiNTNphnUSHdBO4Uz8yS/Wx50HrHC7Ye2pZaYibR+jDEYZXuaWCcppJDGBVs DlzkAm4gds3t882UErL8c4lYLjVVZTHgJPNlUNQWO+19yLCpEq2GoEzgwyuKHSyCIeYv +Img== |
| 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:date :message-id:subject:from:cc; bh=RY3rpJWaB7wK+b3VIm0aZOLGoiAhEK4YPlSLN8hB2u0=; b=Jvk9BIvpHgQSVdPCL070Bieo+W1HleIN1nKTK1lLcj9Lmn9J72/W5jV4tAmKd3bUfr 8PPTynxsH0c3/6nl9gLPavU2L3J/NmCiSFISRo+oo9gB/VG8DpUHy+Y/FrUmc+bm7NWM ihwGFam1kay/uBWXcXO2takevzlUoOjNxAhFUcugQYzI6ionbluaq8XEB4brn09gUGpi t1XyKErBa8CVuafT4I+9S9Nw8T0/I8LLIfCHdL3BydOy4WM4Zh94Nk9Mf5zLg9FyRhN1 ffDI5HWEowdj4KN/oXkbdOb0TCfQOUAkFZnHTNhFcADuxVqz4cZ9zG8l5hE3vJQiDh5q dPSQ== |
| X-Gm-Message-State | AD7BkJJ5Hqv8vWHmpVTfT6xTGnkvbFh/iE71lrSgWG9B24IO/GEPzFwk/CaTczOvQsii8/hO2Wy+rqC/brv/Ew== |
| X-Received | by 10.107.47.163 with SMTP id v35mr9446109iov.19.1456832376776; Tue, 01 Mar 2016 03:39:36 -0800 (PST) |
| In-Reply-To | <56d57aa4$0$1586$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:103788 |
Show key headers only | View raw
On Tue, Mar 1, 2016 at 10:18 PM, Steven D'Aprano <steve@pearwood.info> wrote: > I cannot imagine why you would want to reload() in production code. That > would imply that your production code is modifying already-imported > modules, then wanting to import them again. Why would anyone in their right > mind do that? Possibly because they lost a bet? BartC and I have both done this exact thing, though neither of us used Python for it. It's not so insane as you might think; sometimes you want to update code, but you don't want to restart a process. Just because you've never had a process that hits a year of uptime doesn't mean nobody else does. :) ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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