Searched refs:exitfunc (Results 1 – 15 of 15) sorted by relevance
27 .. index:: single: exitfunc (in sys)30 :func:`sys.exitfunc` variable.33 sets ``sys.exitfunc``. In particular, other core Python modules are free to use35 ``sys.exitfunc`` should convert their code to use :mod:`atexit` instead. The36 simplest way to convert code that sets ``sys.exitfunc`` is to import37 :mod:`atexit` and register the function that had been bound to ``sys.exitfunc``.
232 .. 2to3fixer:: exitfunc234 Changes assignment of :attr:`sys.exitfunc` to use of the :mod:`atexit`
248 .. data:: exitfunc
43 exfunc = sys.exitfunc44 sys.exitfunc = self.h150 sys.exitfunc = exfunc
51 register(sys.exitfunc)52 sys.exitfunc = _run_exitfuncs
1750 PyObject *exitfunc = PySys_GetObject("exitfunc"); in call_sys_exitfunc() local1752 if (exitfunc) { in call_sys_exitfunc()1754 Py_INCREF(exitfunc); in call_sys_exitfunc()1756 res = PyEval_CallObject(exitfunc, (PyObject *)NULL); in call_sys_exitfunc()1763 Py_DECREF(exitfunc); in call_sys_exitfunc()
51 delete-exitfunc= 1
237 del sys.exitfunc
586 - There was an error on exit if no sys.exitfunc was defined. Issue 1647.933 - Added the delete-exitfunc option to config-main.def. (This option is not935 cause IDLE to not run sys.exitfunc/atexit when the subprocess exits.
146 sys.exitfunc = cleanup_console # terminal modes have to be restored on exit...
981 sys.exitfunc = the_coverage.save
1279 * The :func:`sys.exitfunc` function has been deprecated. Code should be using1281 functions. Eventually :func:`sys.exitfunc` will become a purely internal
1081 interpreter exits. Code that currently sets ``sys.exitfunc`` directly should be
1339 exitfunc User can set to a parameterless fcn. It will getcalled
2602 - Deprecated sys.exitfunc in favor of the atexit module. The sys.exitfunc16127 the interpreter. The "sys.exitfunc" feature still makes limited16522 assign a function object to sys.exitfunc, it will be called when