Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ plural
Method
plural
Lib/_pydatetime.py:778–779 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
776
s =
"%d:%02d:%02d"
% (hh, mm, ss)
777
if
self._days:
778
def
plural(n):
779
return
n, abs(n) != 1 and
"s"
or
""
780
s = (
"%d day%s, "
% plural(self._days)) + s
781
if
self._microseconds:
782
s = s +
".%06d"
% self._microseconds
Callers
4
gettext
Method · 0.45
ngettext
Method · 0.45
pgettext
Method · 0.45
npgettext
Method · 0.45
Calls
1
abs
Function · 0.85
Tested by
no test coverage detected