Home
last modified time | relevance | path

Searched refs:atexit (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/external/python/cpython3/Lib/test/
Dtest_atexit.py4 import atexit
39 atexit._clear()
44 atexit._clear()
48 atexit.register(h1)
49 atexit.register(h4)
50 atexit.register(h4, 4, kw="abc")
51 atexit._run_exitfuncs()
57 atexit.register(lambda: 1, 0, 0, (x for x in (1,2)), 0, 0)
58 self.assertRaises(TypeError, atexit._run_exitfuncs)
62 atexit.register(h1)
[all …]
/external/python/cpython2/Lib/test/
Dtest_atexit.py4 import atexit
19 self.save_handlers = atexit._exithandlers
20 atexit._exithandlers = []
25 atexit._exithandlers = self.save_handlers
28 atexit.register(self.h1)
29 atexit.register(self.h4)
30 atexit.register(self.h4, 4, kw="abc")
31 atexit._run_exitfuncs()
36 atexit.register(lambda: 1, 0, 0, (x for x in (1,2)), 0, 0)
37 self.assertRaises(TypeError, atexit._run_exitfuncs)
[all …]
/external/python/cpython2/Doc/library/
Datexit.rst1 :mod:`atexit` --- Exit handlers
4 .. module:: atexit
12 **Source code:** :source:`Lib/atexit.py`
16 The :mod:`atexit` module defines a single function to register cleanup
18 interpreter termination. :mod:`atexit` runs these functions in the *reverse*
34 :mod:`atexit` without the programmer's knowledge. Authors who use
35 ``sys.exitfunc`` should convert their code to use :mod:`atexit` instead. The
37 :mod:`atexit` and register the function that had been bound to ``sys.exitfunc``.
66 Useful example of :mod:`atexit` to read and write :mod:`readline` history files.
71 :mod:`atexit` Example
[all …]
/external/python/cpython3/Doc/library/
Datexit.rst1 :mod:`atexit` --- Exit handlers
4 .. module:: atexit
12 The :mod:`atexit` module defines functions to register and unregister cleanup
14 interpreter termination. :mod:`atexit` runs these functions in the *reverse*
61 Useful example of :mod:`atexit` to read and write :mod:`readline` history
67 :mod:`atexit` Example
89 import atexit
90 atexit.register(savecounter)
98 import atexit
99 atexit.register(goodbye, 'Donny', 'nice')
[all …]
/external/python/cpython2/Lib/multiprocessing/
Dutil.py38 import atexit
89 import logging, atexit
101 if hasattr(atexit, 'unregister'):
102 atexit.unregister(_exit_function)
103 atexit.register(_exit_function)
105 atexit._exithandlers.remove((_exit_function, (), {}))
106 atexit._exithandlers.append((_exit_function, (), {}))
333 atexit.register(_exit_function)
/external/python/cpython3/Lib/multiprocessing/
Dutil.py14 import atexit
75 if hasattr(atexit, 'unregister'):
76 atexit.unregister(_exit_function)
77 atexit.register(_exit_function)
79 atexit._exithandlers.remove((_exit_function, (), {}))
80 atexit._exithandlers.append((_exit_function, (), {}))
339 atexit.register(_exit_function)
/external/compiler-rt/test/tsan/
Datexit2.cc18 atexit(atexit0); in main()
20 atexit(atexit1); in main()
/external/chromium-trace/catapult/common/py_utils/py_utils/
Datexit_with_log.py5 import atexit
21 atexit.register(_WrapFunction(function), *args, **kwargs)
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Thumb2/
Dpic-load.ll7 @llvm.used = appending global [1 x i8*] [i8* bitcast (i32 (void ()*)* @atexit to i8*)], section "ll…
9 define hidden i32 @atexit(void ()* %func) nounwind {
11 ; CHECK-LABEL: atexit:
/external/llvm/test/CodeGen/Thumb2/
Dpic-load.ll7 @llvm.used = appending global [1 x i8*] [i8* bitcast (i32 (void ()*)* @atexit to i8*)], section "ll…
9 define hidden i32 @atexit(void ()* %func) nounwind {
11 ; CHECK-LABEL: atexit:
/external/python/cpython3/Lib/
Dweakref.py547 import atexit
548 atexit.register(self._exitfunc)
555 info.atexit = True
590 def atexit(self): member in finalize
593 return bool(info) and info.atexit
595 @atexit.setter
596 def atexit(self, value): member in finalize
599 info.atexit = bool(value)
613 L = [(f,i) for (f,i) in cls._registry.items() if i.atexit]
Drlcompleter.py32 import atexit
204 atexit.register(lambda: readline.set_completer(None))
/external/compiler-rt/lib/asan/
Dasan_win_dynamic_runtime_thunk.cc62 extern "C" int __cdecl atexit(void (__cdecl *f)(void));
74 return atexit(UnregisterGlobals); in ScheduleUnregisterGlobals()
/external/bcc/examples/tracing/
Dtrace_perf_output.py9 import atexit
47 @atexit.register
/external/autotest/client/bin/
Dfps_meter.py45 import atexit
109 atexit.register(common_lib_utils.open_write_close, filename, orig)
120 atexit.register(common_lib_utils.open_write_close,
145 atexit.register(common_lib_utils.open_write_close, WORKQ_FILTER, '0')
/external/tensorflow/tensorflow/python/autograph/pyct/
Dloader_deprecated_py2.py29 import atexit
54 atexit.register(lambda: os.remove(f.name))
Dloader.py25 import atexit
46 atexit.register(lambda: os.remove(file_name))
/external/autotest/site_utils/rpm_control_system/
Drpm_dispatcher_unittest.py45 rpm_dispatcher.atexit = self.mox.CreateMockAnything()
46 rpm_dispatcher.atexit.register(mox.IgnoreArg())
/external/exoplayer/
Dupdate.py8 import atexit
59 atexit.register(cleanup)
/external/libpcap/testprogs/
Dvisopts.py294 import atexit
297 atexit.register(shutil.rmtree, os.getcwd())
/external/toolchain-utils/crosperf/
Dcrosperf.py12 import atexit
123 atexit.register(Cleanup, experiment)
/external/python/cpython3/Lib/test/libregrtest/
Dsetup.py1 import atexit
129 atexit.register(restore_stdout)
/external/mesa3d/.gitlab-ci/tracie/
Drenderdoc_dump_images.py25 import atexit
36 atexit.register(cleanup, dirpath)
/external/tensorflow/tensorflow/lite/micro/tools/make/targets/
Dhexagon_makefile.inc36 -fno-register-global-dtors-with-atexit \
41 -fno-use-cxa-atexit \
/external/python/futures/concurrent/futures/
Dthread.py6 import atexit
49 atexit.register(_python_exit)

12345678910>>...12