MCPcopy 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

buildmapMethod · 0.95
test_basicMethod · 0.80
test_write_charMethod · 0.80
test_utf8Method · 0.80
test_decode_utf8Method · 0.80
test_widecharMethod · 0.80
test_ucs4Method · 0.80
test_formatMethod · 0.80

Calls 2

strFunction · 0.85
writeMethod · 0.45

Tested by 8

test_basicMethod · 0.64
test_write_charMethod · 0.64
test_utf8Method · 0.64
test_decode_utf8Method · 0.64
test_widecharMethod · 0.64
test_ucs4Method · 0.64
test_formatMethod · 0.64