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


Groups > comp.lang.python > #40283

Re: Speeding up Python's exit

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.038
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'subject:Python': 0.05; 'python': 0.09; '(without': 0.09; 'closed.': 0.09; 'antoine': 0.16; 'flushed': 0.16; 'handlers.': 0.16; 'pitrou': 0.16; 'wrote:': 0.17; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'buffers': 0.29; 'writes:': 0.29; 'no,': 0.29; '(including': 0.30; '(from': 0.30; 'to:addr:python-list': 0.33; 'open': 0.35; 'pm,': 0.35; "didn't": 0.36; 'subject:: ': 0.38; 'registered': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'serial': 0.66; 'received:74.208': 0.71; 'streams': 0.84; 'edwards': 0.91; '\xe2\x80\x9cthe': 0.91
Date Fri, 01 Mar 2013 14:17:37 -0500
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2
MIME-Version 1.0
To python-list@python.org
Subject Re: Speeding up Python's exit
References <512f8aa9$0$30001$c3e8da3$5496439d@news.astraweb.com> <kgovio$9h5$1@reader1.panix.com> <loom.20130301T200907-56@post.gmane.org>
In-Reply-To <loom.20130301T200907-56@post.gmane.org>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Provags-ID V02:K0:g1zDntSmRl81UNw8ImJqg9m3DT5bkpytjcWdFaIO2ya pEtDouwUJw5mEB9/DBgn/FeAm/9f23kg2Hpxg0HTNLsn0wDDIt 4hWpdBoIpOqk8JMa7C5PrdYofW2MHTvoBW6ykTod2ACW8QCrIa EtM4LU/emq+fLHaGcVXkR8lMewdALw5tnwb3mOVFT9LDk7hveo dWIE4JpdvE2VqWFn2eax1GlfJrybpME7OZsvR1ZDhQrNjsiwdc E5F5OO2UQFsSZRzB/4mcB7GWIVs3s3u02oO+gtNtwO7yo/wygB PPLAbrhoMrLb3CNQ3ceq5V9QUXYpoiJlgbbEU2ZJ+HYBMAeuw= =
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.2748.1362165474.2939.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362165474 news.xs4all.nl 6943 [2001:888:2000:d::a6]:34976
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40283

Show key headers only | View raw


On 03/01/2013 02:10 PM, Antoine Pitrou wrote:
> Grant Edwards <invalid <at> invalid.invalid> writes:
>>  <snip>
>> All open files (including sockets, pipes, serial ports, etc) will be
>> flushed (from an OS standpoint) and closed.
>
> According to POSIX, no, open files will not be flushed:
>
> “The _Exit() and _exit() functions shall not call functions registered with
> atexit() nor any registered signal handlers. Open streams shall not be flushed.
> Whether open streams are closed (without flushing) is implementation-defined.”
>

Note he didn't say the python buffers would be flushed.  It's the OS 
buffers that are flushed.


-- 
DaveA

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


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