Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _as_int
Function
_as_int
Lib/gettext.py:168–174 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
166
167
168
def
_as_int(n):
169
try
:
170
round(n)
171
except
TypeError:
172
raise
TypeError(
'Plural value must be an integer, got %s'
%
173
(n.__class__.__name__,))
from
None
174
return
_as_int2(n)
175
176
def
_as_int2(n):
177
try
:
Callers
nothing calls this directly
Calls
2
round
Function · 0.85
_as_int2
Function · 0.85
Tested by
no test coverage detected