MCPcopy Create free account
hub / github.com/catboost/catboost / _print

Function _print

library/python/runtime_py3/__res.py:186–197  ·  view source on GitHub ↗

This is helpful for debugging, since automatic bytes to str conversion is not available yet. It is also possible to debug with GDB by breaking on __Pyx_AddTraceback (with Python GDB pretty printers enabled).

(*xs)

Source from the content-addressed store, hash-verified

184
185
186def _print(*xs):
187 """
188 This is helpful for debugging, since automatic bytes to str conversion is
189 not available yet. It is also possible to debug with GDB by breaking on
190 __Pyx_AddTraceback (with Python GDB pretty printers enabled).
191 """
192 parts = []
193 for s in xs:
194 if not isinstance(s, (bytes, str)):
195 s = str(s)
196 parts.append(_s(s))
197 sys.stderr.write(' '.join(parts) + '\n')
198
199
200def iter_keys(prefix):

Callers

nothing calls this directly

Calls 5

isinstanceFunction · 0.85
strClass · 0.50
appendMethod · 0.45
writeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected