Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40313
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <jason.swails@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'interpreter': 0.04; 'subject:Python': 0.05; '*not*': 0.07; 'terminated': 0.07; 'python': 0.09; 'exits': 0.09; 'flush': 0.09; "object's": 0.09; 'cc:addr:python-list': 0.10; '(via': 0.16; 'antoine': 0.16; 'flushed': 0.16; 'pitrou': 0.16; 'posix': 0.16; 'wrote:': 0.17; 'pointed': 0.17; 'do.': 0.21; 'cc:2**0': 0.23; '>': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'so.': 0.24; 'linux': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'appear': 0.26; 'disk': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'buffers': 0.29; 'writes:': 0.29; 'fri,': 0.30; 'file': 0.32; "can't": 0.34; 'received:google.com': 0.34; 'jason': 0.35; 'pm,': 0.35; 'really': 0.36; 'depends': 0.36; "didn't": 0.36; 'best,': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'sure': 0.38; 'system.': 0.39; 'called': 0.39; 'behavior': 0.64; '2013': 0.84; 'observed': 0.84; 'angel': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=fHhT/vjWfg92QNRn+SC7qcdoxAAS+F+wTA+jXhSHqs4=; b=iGunS0UtdHpsN8uaZYr2EW4BSTx+5AZCZpD6NX3zAMGPqrcnOuPS859ij9SkxgAulO E2G441eTRYE4HqZgkL6OeG9g2aA3enfI0+VSz0FtUe3TpbM4X9AtzZ5vERFkgcbqV7Is aCKyK+qRukbBlu+ilYbDNIlk/2j6m0DPgH7I0UNtN8qO62zGhQdHNQWADdbyGpf0FJJ1 o8JKkifRYVIc4jyxvhPPy2OxiQ7Rl1FpKb3OFDPn1Vp6afhOu+tzw8dR9Nod2dl6JoQC SvkHgltHxBygK+zllegU0HtLakvOxruyIE0dKjk2RgL7FAs9Z0Z47CvIQh7V7X1PSsm1 Bu7w== |
| MIME-Version | 1.0 |
| X-Received | by 10.42.67.10 with SMTP id r10mr9894588ici.7.1362192712221; Fri, 01 Mar 2013 18:51:52 -0800 (PST) |
| In-Reply-To | <loom.20130301T235002-718@post.gmane.org> |
| References | <512f8aa9$0$30001$c3e8da3$5496439d@news.astraweb.com> <kgovio$9h5$1@reader1.panix.com> <loom.20130301T200907-56@post.gmane.org> <5130FED1.6060302@davea.name> <loom.20130301T235002-718@post.gmane.org> |
| Date | Fri, 1 Mar 2013 21:51:52 -0500 |
| Subject | Re: Speeding up Python's exit |
| From | Jason Swails <jason.swails@gmail.com> |
| To | Antoine Pitrou <solipsis@pitrou.net> |
| Content-Type | multipart/alternative; boundary=20cf3030bd29ba4e9704d6e83490 |
| Cc | python-list@python.org |
| 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.2764.1362192720.2939.python-list@python.org> (permalink) |
| Lines | 60 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1362192720 news.xs4all.nl 6901 [2001:888:2000:d::a6]:50432 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:40313 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Fri, Mar 1, 2013 at 5:51 PM, Antoine Pitrou <solipsis@pitrou.net> wrote: > Dave Angel <davea <at> davea.name> writes: > > > > Note he didn't say the python buffers would be flushed. It's the OS > > buffers that are flushed. > > Now please read my message again. The OS buffers are *not* flushed > according > to POSIX. > I have observed this behavior on some Linux systems with a Fortran program that terminated abnormally (via a kill signal). Other Linux systems I've used appear to flush their file buffers to disk in the event of a kill signal, it really depends on the system. If a file object's destructor is not called when the Python interpreter exits and it's up to the OS to flush the file buffers to disk, you can't be sure that it will do so. And as Antoine pointed out, POSIX standard doesn't require that they do. All the best, Jason
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Speeding up Python's exit Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-28 16:49 +0000
Re: Speeding up Python's exit Neil Cerutti <neilc@norwich.edu> - 2013-02-28 17:02 +0000
Re: Speeding up Python's exit Chris Angelico <rosuav@gmail.com> - 2013-03-01 04:06 +1100
Re: Speeding up Python's exit Chris Angelico <rosuav@gmail.com> - 2013-03-01 04:33 +1100
Re: Speeding up Python's exit Devin Jeanpierre <jeanpierreda@gmail.com> - 2013-02-28 12:33 -0500
Re: Speeding up Python's exit Devin Jeanpierre <jeanpierreda@gmail.com> - 2013-02-28 12:31 -0500
Re: Speeding up Python's exit Grant Edwards <invalid@invalid.invalid> - 2013-03-01 01:17 +0000
Re: Speeding up Python's exit Antoine Pitrou <solipsis@pitrou.net> - 2013-03-01 19:10 +0000
Re: Speeding up Python's exit Dave Angel <davea@davea.name> - 2013-03-01 14:17 -0500
Re: Speeding up Python's exit Antoine Pitrou <solipsis@pitrou.net> - 2013-03-01 22:51 +0000
Re: Speeding up Python's exit Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-03-03 18:27 -0500
Re: Speeding up Python's exit Jason Swails <jason.swails@gmail.com> - 2013-03-01 21:51 -0500
Re: Speeding up Python's exit Antoine Pitrou <solipsis@pitrou.net> - 2013-03-01 14:59 +0000
csiph-web