skip> Given that sys.exitfunc is gone is there a reason to have
    skip> _run_exitfuncs?  Who's going to call it?

    Christian> Unit tests? Some developers might want to test their
    Christian> registered functions.

Your tests can just fork another instance of Python which prints:

    python -c 'import atexit
def f(*args, **kwds):
    print("atexit", args, kwds)

atexit.register(f, 1, x=2)
'

and have your test case expect to see the appropriate output.

Skip
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to