GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python/test/module_multi_phase_nogil.py at develop · arrowd/python Expand file tree/ Copy pathmodule_multi_phase_nogil.pyMore file actions 29 lines (25 loc) · 656 Bytes / Copy pathmodule_multi_phase_nogil.pyFile metadata and controls29 lines (25 loc) · 656 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 """ >>> from module_multi_phase_nogil_ext import * >>> get_value() 1234 >>> import sys, sysconfig >>> Py_GIL_DISABLED = bool(sysconfig.get_config_var('Py_GIL_DISABLED')) >>> if Py_GIL_DISABLED and sys._is_gil_enabled(): ... print('GIL is enabled and should not be') ... else: ... print('okay') okay """ from __future__ import print_function def run(args = None): import sys import doctest if args is not None: sys.argv = args return doctest.testmod(sys.modules.get(__name__)) if __name__ == '__main__': print("running...") import sys status = run()[0] if (status == 0): print("Done.") sys.exit(status) |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |