MCPcopy Index your code
hub / github.com/python/cpython / Int2AP

Function Int2AP

Lib/imaplib.py:1797–1806  ·  view source on GitHub ↗

Convert integer to A-P string representation.

(num)

Source from the content-addressed store, hash-verified

1795
1796
1797def Int2AP(num):
1798
1799 """Convert integer to A-P string representation."""
1800
1801 val = b''; AP = b'ABCDEFGHIJKLMNOP'
1802 num = int(abs(num))
1803 while num:
1804 num, mod = divmod(num, 16)
1805 val = AP[mod:mod+1] + val
1806 return val
1807
1808
1809

Callers 1

_connectMethod · 0.85

Calls 1

absFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…