Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ ConvertibleToUnicodeOnly
Class
ConvertibleToUnicodeOnly
library/python/strings/ut/test_strings.py:25–27 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
23
24
25
class
ConvertibleToUnicodeOnly(Convertible):
26
def
__str__(self):
27
return
self.text.encode(
'ascii'
)
28
29
30
class
ConvertibleToStrOnly(Convertible):
Callers
3
test_to_basestring
Function · 0.85
test_to_unicode
Function · 0.85
test_to_str
Function · 0.85
Calls
no outgoing calls
Tested by
3
test_to_basestring
Function · 0.68
test_to_unicode
Function · 0.68
test_to_str
Function · 0.68