MCPcopy Index your code
hub / github.com/RustPython/RustPython / verbose_print

Function verbose_print

Lib/test/test_thread.py:18–22  ·  view source on GitHub ↗

Helper function for printing out debugging output.

(arg)

Source from the content-addressed store, hash-verified

16_print_mutex = thread.allocate_lock()
17
18def verbose_print(arg):
19 """Helper function for printing out debugging output."""
20 if support.verbose:
21 with _print_mutex:
22 print(arg)
23
24
25class BasicThreadTest(unittest.TestCase):

Callers 6

newtaskMethod · 0.85
taskMethod · 0.85
test_starting_threadsMethod · 0.85
test_barrierMethod · 0.85
task2Method · 0.85

Calls 1

printFunction · 0.50

Tested by

no test coverage detected