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

Function log

Platforms/WASI/_build.py:60–68  ·  view source on GitHub ↗

Print a notification with an emoji. If 'spacing' is None, calculate the spacing based on the number of code points in the emoji as terminals "eat" a space when the emoji has multiple code points.

(emoji, message, *, spacing=None)

Source from the content-addressed store, hash-verified

58
59
60def log(emoji, message, *, spacing=None):
61 """Print a notification with an emoji.
62
63 If 'spacing' is None, calculate the spacing based on the number of code points
64 in the emoji as terminals "eat" a space when the emoji has multiple code points.
65 """
66 if spacing is None:
67 spacing = " " if len(emoji) == 1 else " "
68 print("".join([emoji, spacing, message]))
69
70
71def updated_env(updates={}):

Callers 9

updated_envFunction · 0.70
wrapperFunction · 0.70
callFunction · 0.70
configure_build_pythonFunction · 0.70
make_build_pythonFunction · 0.70
wasi_sdkFunction · 0.70
configure_wasi_pythonFunction · 0.70
make_wasi_pythonFunction · 0.70
clean_contentsFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected