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

Function _as_int

Lib/gettext.py:169–175  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

167
168
169def _as_int(n):
170 try:
171 round(n)
172 except TypeError:
173 raise TypeError('Plural value must be an integer, got %s' %
174 (n.__class__.__name__,)) from None
175 return _as_int2(n)
176
177def _as_int2(n):
178 try:

Callers

nothing calls this directly

Calls 1

_as_int2Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…