The first argument to dgettext() is the translation domain. Why would you pass an absurdly long string as the domain?
Try this instead:
$ python3
Python 3.8.6 (default, Jan 27 2021, 15:42:20)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> myvar = locale.dgettext('git', 'abs'*10000000)
>>> quit()
The first argument to dgettext() is the translation domain. Why would you pass an absurdly long string as the domain?
Try this instead:
$ python3 dgettext( 'git', 'abs'*10000000)
Python 3.8.6 (default, Jan 27 2021, 15:42:20)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> myvar = locale.
>>> quit()