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


Groups > comp.lang.python > #29007

Some questions about atexit

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!panix!roy
From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Some questions about atexit
Date Wed, 12 Sep 2012 20:58:23 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Lines 8
Message-ID <roy-68612B.20582312092012@news.panix.com> (permalink)
NNTP-Posting-Host localhost
X-Trace reader1.panix.com 1347497903 27301 127.0.0.1 (13 Sep 2012 00:58:23 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Thu, 13 Sep 2012 00:58:23 +0000 (UTC)
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Xref csiph.com comp.lang.python:29007

Show key headers only | View raw


The atexit docs (http://docs.python.org/library/atexit.html) are very 
confusing.  In one place they say, "The order in which the functions are 
called is not defined".  In another place, "all functions registered are 
called in last in, first out order".  Which is correct?

Also, it's not clear how atexit handlers interact with threading.  Do 
all handlers get called in the main thread?  What if some other thread 
registers a handler?  Does it get called in that thread?

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


Thread

Some questions about atexit Roy Smith <roy@panix.com> - 2012-09-12 20:58 -0400
  Re: Some questions about atexit Terry Reedy <tjreedy@udel.edu> - 2012-09-12 22:29 -0400
    Re: Some questions about atexit Roy Smith <roy@panix.com> - 2012-09-13 09:03 -0400

csiph-web