Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ write_char
Method
write_char
Tools/unicode/genmap_support.py:149–150 ·
view source on GitHub ↗
(self, point)
Source
from the content-addressed store, hash-verified
147
self.filler.write(
'M,'
)
148
149
def
write_char(self, point):
150
self.filler.write(str(point) +
','
)
151
152
def
printmap(self):
153
self.fp.write(f
"static const {self.elemtype} __{self.prefix}_encmap[{len(self.filler)}] = {{\n"
)
Callers
9
buildmap
Method · 0.95
test_basic
Method · 0.80
test_write_char
Method · 0.80
test_utf8
Method · 0.80
test_decode_utf8
Method · 0.80
test_decode_utf8_consumed
Method · 0.80
test_widechar
Method · 0.80
test_ucs4
Method · 0.80
test_format
Method · 0.80
Calls
2
str
Function · 0.85
write
Method · 0.45
Tested by
8
test_basic
Method · 0.64
test_write_char
Method · 0.64
test_utf8
Method · 0.64
test_decode_utf8
Method · 0.64
test_decode_utf8_consumed
Method · 0.64
test_widechar
Method · 0.64
test_ucs4
Method · 0.64
test_format
Method · 0.64