Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30556
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'restarting': 0.07; 'stops': 0.07; "django's": 0.09; 'thread': 0.11; 'modification': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'oct': 0.16; 'roy': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'accepting': 0.18; '(not': 0.20; 'code.': 0.20; 'changes': 0.20; 'received:209.85.214.174': 0.21; 'header:In-Reply-To:1': 0.25; 'looks': 0.26; 'am,': 0.27; 'continuing': 0.27; 'disk': 0.27; 'mind.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'developing': 0.28; 'chris': 0.28; 'second,': 0.29; 'served': 0.29; 'subject:what': 0.29; 'handled': 0.29; 'source': 0.29; "i'm": 0.29; 'checks': 0.30; 'connections': 0.30; 'code': 0.31; 'point': 0.31; 'running': 0.32; 'ones,': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'so,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'modules': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'application': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'kind': 0.61; 'talking': 0.66; 'smith': 0.71; 'article': 0.78; '(let': 0.84; 'check)': 0.84; 'hugely': 0.84; 'subject:learn': 0.84 |
| 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:to :content-type; bh=LAp4RGtoehaORie1cm1/Yxr8G2u4U/b8fpuf2TximV4=; b=kVMAKRvFj0R2TtZ9j6gjENe0krftR3aa3iSYrwfii4Z/uHSoqg30pfjeN6klpZ6jF0 A2EcQ9sPu9Os8Yk7Mp9vawq00CaMj/M2NnKc+DMHi22a3NWMVfMG8QMOxYr9MJVLmPvl 8IEpY1McK2xtpumIQVln6WX5AndKIwJGIR2CfXocySkEzxr2XhW3BNlUkVlPhbn26oSt 8uNBnLuGgebIElo0loKWZ+/groveOIW5QYPgqHPrmwMHKIoo6MnUKl0Lv7mfG/N+L0or GJyjK3qkEcWxe0sDClh0Tn41TQ3RG87wffWOZ6QL7yW/WouvTPm/HBtViZ94/HMZRLG4 d6Yg== |
| MIME-Version | 1.0 |
| In-Reply-To | <roy-A05EF0.10233530092012@news.panix.com> |
| References | <15f76508-437a-4d18-ac9b-16174ef172e8@googlegroups.com> <mailman.1672.1349011558.27098.python-list@python.org> <roy-A05EF0.10233530092012@news.panix.com> |
| Date | Mon, 1 Oct 2012 00:35:52 +1000 |
| Subject | Re: Can somebody give me an advice about what to learn? |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1675.1349015755.27098.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1349015755 news.xs4all.nl 6965 [2001:888:2000:d::a6]:50569 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:30556 |
Show key headers only | View raw
On Mon, Oct 1, 2012 at 12:23 AM, Roy Smith <roy@panix.com> wrote: > In article <mailman.1672.1349011558.27098.python-list@python.org>, > Chris Angelico <rosuav@gmail.com> wrote: > >> there's no efficient and reliable way to change/reload code in a >> running application (not often an issue). > > What we do (largely cribbed from django's runserver) is start up a > thread which once a second, looks at all the modules in sys.modules, > checks to see if the modification time for their source files has > changed, and if so, restarts the application. This is hugely convenient > when developing any kind of long-running application. You don't need to > keep restarting the application; just edit the source and changes take > effect (almost) immediately. > > Not sure if this is what you had in mind. It's not an _explicit_ restart, but you have to write your application to keep all its state on disk in some way. What I'm talking about is having a single process that never terminates, never stops accepting connections, but at some point new connections begin to be served with new code - with old ones, if they're still going, continuing to be handled by the old code. I have one such process that's been going for (let me check) 115 wk 0d 21:05:21. For many types of application, restarting is perfectly viable, so this isn't a major issue with Python. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Can somebody give me an advice about what to learn? tcgo <tomeuari@gmail.com> - 2012-09-30 05:58 -0700
Re: Can somebody give me an advice about what to learn? Chris Angelico <rosuav@gmail.com> - 2012-09-30 23:25 +1000
Re: Can somebody give me an advice about what to learn? Roy Smith <roy@panix.com> - 2012-09-30 10:23 -0400
Re: Can somebody give me an advice about what to learn? Chris Angelico <rosuav@gmail.com> - 2012-10-01 00:35 +1000
Re: Can somebody give me an advice about what to learn? Roy Smith <roy@panix.com> - 2012-09-30 11:01 -0400
Re: Can somebody give me an advice about what to learn? Chris Angelico <rosuav@gmail.com> - 2012-10-01 01:37 +1000
Re: Can somebody give me an advice about what to learn? Roy Smith <roy@panix.com> - 2012-09-30 18:14 -0400
Re: Can somebody give me an advice about what to learn? Chris Angelico <rosuav@gmail.com> - 2012-10-01 09:11 +1000
Re: Can somebody give me an advice about what to learn? Hans Mulder <hansmu@xs4all.nl> - 2012-10-03 19:55 +0200
Re: Can somebody give me an advice about what to learn? Chris Angelico <rosuav@gmail.com> - 2012-10-01 00:37 +1000
Re: Can somebody give me an advice about what to learn? Tim Chase <python.list@tim.thechases.com> - 2012-09-30 08:45 -0500
Re: Can somebody give me an advice about what to learn? rusi <rustompmody@gmail.com> - 2012-09-30 08:18 -0700
Re: Can somebody give me an advice about what to learn? Roy Smith <roy@panix.com> - 2012-09-30 18:17 -0400
Re: Can somebody give me an advice about what to learn? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-30 23:59 +0000
Re: Can somebody give me an advice about what to learn? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-30 16:47 +0100
Re: Can somebody give me an advice about what to learn? Wolfgang Keller <feliphil@gmx.net> - 2012-10-03 20:31 +0200
Re: Can somebody give me an advice about what to learn? Chris Rebert <clp2@rebertia.com> - 2012-10-03 21:47 -0700
Re: Can somebody give me an advice about what to learn? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-04 06:34 +0000
Re: Can somebody give me an advice about what to learn? Wolfgang Keller <feliphil@gmx.net> - 2012-10-04 19:45 +0200
csiph-web