[issue35163] locale: setlocale(..., 'eo') sets non-existing locale

2020-01-07 Thread Carmen Bianca Bakker
Change by Carmen Bianca Bakker : -- keywords: +patch pull_requests: +17313 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17901 ___ Python tracker <https://bugs.python.org/issu

[issue36875] argparse does not ship with translations

2019-05-10 Thread Carmen Bianca Bakker
Carmen Bianca Bakker added the comment: I have created a prototype for the proposed fix here: https://github.com/carmenbianca/argparse I'm not a regular Python contributor, so I simply copied argparse.py out of Lib and started working on my own copy. The changes are, all things considered

[issue36875] argparse does not ship with translations

2019-05-10 Thread Carmen Bianca Bakker
New submission from Carmen Bianca Bakker : Although argparse contains translatable strings, translations for those strings do not ship with Python. This means that any program that uses argparse must separately translate argparse, which is a lot of duplicated work. Moreover, if argparse

[issue35163] locale: setlocale(..., 'eo') sets non-existing locale

2018-11-04 Thread Carmen Bianca Bakker
New submission from Carmen Bianca Bakker : See the following script: >>> import locale >>> locale.setlocale(locale.LC_ALL, 'eo') 'eo' >>> my_locale = locale.getlocale() >>> my_locale ('eo_XX', 'ISO8859-3') >>> locale.setlocale(locale.LC_ALL, my_loca

[issue30590] str.format no longer accepts unpacked defaultdict for default values

2017-06-07 Thread Carmen Bianca Bakker
New submission from Carmen Bianca Bakker: As brief as can be, the following script works in Python 3.4 and Python 3.5: from collections import defaultdict mydict = defaultdict(lambda: 'default') print('{foo}'.format(**mydict)) And prints "default". In Python 3.