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

Function T

Lib/encodings/punycode.py:70–75  ·  view source on GitHub ↗
(j, bias)

Source from the content-addressed store, hash-verified

68 return result
69
70def T(j, bias):
71 # Punycode parameters: tmin = 1, tmax = 26, base = 36
72 res = 36 * (j + 1) - bias
73 if res < 1: return 1
74 if res > 26: return 26
75 return res
76
77digits = b"abcdefghijklmnopqrstuvwxyz0123456789"
78def generate_generalized_integer(N, bias):

Callers 3

_convertFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected