/external/python/cpython3/Lib/test/ |
D | test_atexit.py | 4 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/ |
D | test_atexit.py | 4 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/ |
D | atexit.rst | 1 :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/ |
D | atexit.rst | 1 :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/ |
D | util.py | 38 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/ |
D | util.py | 14 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/ |
D | pic-load.ll | 6 @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/ |
D | weakref.py | 534 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]
|
D | rlcompleter.py | 32 import atexit 204 atexit.register(lambda: readline.set_completer(None))
|
/external/compiler-rt/test/tsan/ |
D | atexit2.cc | 18 atexit(atexit0); in main() 20 atexit(atexit1); in main()
|
/external/llvm/test/CodeGen/Thumb2/ |
D | pic-load.ll | 7 @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/ |
D | pic-load.ll | 7 @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/ |
D | atexit_with_log.py | 5 import atexit 21 atexit.register(_WrapFunction(function), *args, **kwargs)
|
/external/compiler-rt/lib/asan/ |
D | asan_win_dynamic_runtime_thunk.cc | 62 extern "C" int __cdecl atexit(void (__cdecl *f)(void)); 74 return atexit(UnregisterGlobals); in ScheduleUnregisterGlobals()
|
/external/autotest/client/bin/ |
D | fps_meter.py | 45 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/ |
D | trace_perf_output.py | 9 import atexit 47 @atexit.register
|
/external/autotest/site_utils/rpm_control_system/ |
D | rpm_dispatcher_unittest.py | 45 rpm_dispatcher.atexit = self.mox.CreateMockAnything() 46 rpm_dispatcher.atexit.register(mox.IgnoreArg())
|
/external/libpcap/testprogs/ |
D | visopts.py | 294 import atexit 297 atexit.register(shutil.rmtree, os.getcwd())
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | compiler.py | 25 import atexit 87 atexit.register(lambda: os.remove(f.name))
|
/external/perfetto/tools/ |
D | heap_profile | 22 import atexit 215 atexit.register(subprocess.check_call, 225 atexit.register(subprocess.check_call,
|
/external/python/apitools/apitools/base/py/ |
D | base_cli.py | 21 import atexit 130 atexit.register(lambda: readline.write_history_file(histfile))
|
/external/toolchain-utils/crosperf/ |
D | crosperf.py | 8 import atexit 119 atexit.register(Cleanup, experiment)
|
/external/python/cpython3/Lib/test/libregrtest/ |
D | setup.py | 1 import atexit 140 atexit.register(restore_stdout)
|
/external/python/futures/concurrent/futures/ |
D | thread.py | 6 import atexit 49 atexit.register(_python_exit)
|
/external/grpc-grpc/tools/interop_matrix/ |
D | create_matrix_images.py | 20 import atexit 129 atexit.register(lambda: subprocess.call(['rm', '-rf', temp_dir])) 258 atexit.register(cleanup)
|