Home
last modified time | relevance | path

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

1234567891011

/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, (), {}))
327 atexit.register(_exit_function)
/external/swiftshader/third_party/LLVM/test/CodeGen/Thumb2/
Dpic-load.ll6 @llvm.used = appending global [1 x i8*] [i8* bitcast (i32 (void ()*)* @atexit to i8*)], section "ll…
8 define hidden i32 @atexit(void ()* %func) nounwind {
10 ; CHECK: atexit:
/external/python/cpython3/Lib/
Dweakref.py534 import atexit
535 atexit.register(self._exitfunc)
542 info.atexit = True
576 def atexit(self): member in finalize
579 return bool(info) and info.atexit
581 @atexit.setter
582 def atexit(self, value): member in finalize
585 info.atexit = bool(value)
599 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/test/tsan/
Datexit2.cc18 atexit(atexit0); in main()
20 atexit(atexit1); in main()
/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/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/chromium-trace/catapult/common/py_utils/py_utils/
Datexit_with_log.py5 import atexit
21 atexit.register(_WrapFunction(function), *args, **kwargs)
/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/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/bcc/examples/tracing/
Dtrace_perf_output.py9 import atexit
47 @atexit.register
/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/libpcap/testprogs/
Dvisopts.py294 import atexit
297 atexit.register(shutil.rmtree, os.getcwd())
/external/tensorflow/tensorflow/python/autograph/pyct/
Dcompiler.py25 import atexit
87 atexit.register(lambda: os.remove(f.name))
/external/perfetto/tools/
Dheap_profile22 import atexit
215 atexit.register(subprocess.check_call,
225 atexit.register(subprocess.check_call,
/external/python/apitools/apitools/base/py/
Dbase_cli.py21 import atexit
130 atexit.register(lambda: readline.write_history_file(histfile))
/external/toolchain-utils/crosperf/
Dcrosperf.py8 import atexit
119 atexit.register(Cleanup, experiment)
/external/python/cpython3/Lib/test/libregrtest/
Dsetup.py1 import atexit
140 atexit.register(restore_stdout)
/external/python/futures/concurrent/futures/
Dthread.py6 import atexit
49 atexit.register(_python_exit)
/external/grpc-grpc/tools/interop_matrix/
Dcreate_matrix_images.py20 import atexit
129 atexit.register(lambda: subprocess.call(['rm', '-rf', temp_dir]))
258 atexit.register(cleanup)

1234567891011