Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ add_fallback
Method
add_fallback
Lib/gettext.py:285–289 ·
view source on GitHub ↗
(self, fallback)
Source
from the content-addressed store, hash-verified
283
pass
284
285
def
add_fallback(self, fallback):
286
if
self._fallback:
287
self._fallback.add_fallback(fallback)
288
else
:
289
self._fallback = fallback
290
291
def
gettext(self, message):
292
if
self._fallback:
Callers
4
test_null_translations_fallback
Method · 0.95
test_nested_fallbacks
Method · 0.95
translation
Function · 0.80
test_gnu_translations_fallback
Method · 0.80
Calls
no outgoing calls
Tested by
3
test_null_translations_fallback
Method · 0.76
test_nested_fallbacks
Method · 0.76
test_gnu_translations_fallback
Method · 0.64