[Python-checkins] CVS: python/dist/src/Lib atexit.py,1.1,1.1.2.1
Moshe Zadka
moshez@users.sourceforge.net
Sat, 31 Mar 2001 01:45:06 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv14664/Lib
Modified Files:
Tag: release20-maint
atexit.py
Log Message:
atexit.py - mutate list of functions in thread-safe way
Index: atexit.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/atexit.py,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** atexit.py 2000/06/28 15:07:31 1.1
--- atexit.py 2001/03/31 09:45:04 1.1.2.1
***************
*** 15,21 ****
while _exithandlers:
! func, targs, kargs = _exithandlers[-1]
apply(func, targs, kargs)
- _exithandlers.remove(_exithandlers[-1])
def register(func, *targs, **kargs):
--- 15,20 ----
while _exithandlers:
! func, targs, kargs = _exithandlers.pop()
apply(func, targs, kargs)
def register(func, *targs, **kargs):