MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / repr_int

Method repr_int

tools/python-3.11.9-amd64/Lib/reprlib.py:135–141  ·  view source on GitHub ↗
(self, x, level)

Source from the content-addressed store, hash-verified

133 return s
134
135 def repr_int(self, x, level):
136 s = builtins.repr(x) # XXX Hope this isn't too slow...
137 if len(s) > self.maxlong:
138 i = max(0, (self.maxlong-3)//2)
139 j = max(0, self.maxlong-3-i)
140 s = s[:i] + self.fillvalue + s[len(s)-j:]
141 return s
142
143 def repr_instance(self, x, level):
144 try:

Callers

nothing calls this directly

Calls 2

maxFunction · 0.85
reprMethod · 0.45

Tested by

no test coverage detected