MCPcopy Index your code
hub / github.com/python/cpython / _verbose_message

Function _verbose_message

Lib/importlib/_bootstrap.py:494–499  ·  view source on GitHub ↗

Print the message to stderr if -v/PYTHONVERBOSE is turned on.

(message, *args, verbosity=1)

Source from the content-addressed store, hash-verified

492
493
494def _verbose_message(message, *args, verbosity=1):
495 """Print the message to stderr if -v/PYTHONVERBOSE is turned on."""
496 if sys.flags.verbose >= verbosity:
497 if not message.startswith(('#', 'import ')):
498 message = '# ' + message
499 print(message.format(*args), file=sys.stderr)
500
501
502def _requires_builtin(fxn):

Callers 1

_load_unlockedFunction · 0.85

Calls 2

startswithMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…