MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / decode_string

Function decode_string

python-package/lightgbmmt/compat.py:24–26  ·  view source on GitHub ↗

Decode C bytestring to ordinary string.

(bytestring)

Source from the content-addressed store, hash-verified

22 return len(inspect.signature(func).parameters)
23
24 def decode_string(bytestring):
25 """Decode C bytestring to ordinary string."""
26 return bytestring.decode('utf-8')
27else:
28 from itertools import izip as zip_
29 string_type = basestring

Callers 2

_safe_callFunction · 0.85
_load_pandas_categoricalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected