[issue44864] [argparse] Do not translate user-provided strings in `ArgumentParser.add_subparsers()`

2021-08-25 Thread Jérémie Detrey
Jérémie Detrey added the comment: Hi, Thank you for the clarification! In fact, I'm afraid the localization feature of `argparse` is undocumented. (At least, I couldn't find anything about it in the documentation.) A hint that modules should only take care of their own strings can however

[issue44865] [argparse] Missing translations

2021-08-24 Thread Jérémie Detrey
Jérémie Detrey added the comment: Hi again! As for #44864, I've just added a short blurb to the PR. The fact that a few strings are missing calls to the localization function (whereas most of the other strings in `argparse` are already localized) might push this issue toward the bug-fix

[issue44864] [argparse] Do not translate user-provided strings in `ArgumentParser.add_subparsers()`

2021-08-24 Thread Jérémie Detrey
Jérémie Detrey added the comment: Hi Terry, Thanks for the feedback! I've just added a blurb to the PR. Regarding the issue type, even though this is indeed translation-related, I'd lean toward a bug report rather than an enhancement request: the fact that user-provided strings get fed

[issue44865] [argparse] Missing translations

2021-08-08 Thread Jérémie Detrey
Change by Jérémie Detrey : -- keywords: +patch pull_requests: +26157 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27668 ___ Python tracker <https://bugs.python.org/issu

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2021-08-08 Thread Jérémie Detrey
Change by Jérémie Detrey : -- versions: +Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.9 ___ Python tracker <https://bugs.python.org/issue33

[issue44865] [argparse] Missing translations

2021-08-08 Thread Jérémie Detrey
New submission from Jérémie Detrey : Dear all, There are a few strings in the `argparse` module which are not translatable through the `gettext` API. Some have already been reported: - the "--version" help text at 3.9/Lib/argparse.py:1105 (reported in issue 16786, fixed b

[issue16786] argparse doesn't offer localization interface for "version" action

2021-08-08 Thread Jérémie Detrey
Change by Jérémie Detrey : -- versions: +Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker <https://bugs.python.org/issue16

[issue16786] argparse doesn't offer localization interface for "version" action

2021-08-08 Thread Jérémie Detrey
Jérémie Detrey added the comment: Dear all, As commented on PR 12711 (https://github.com/python/cpython/pull/12711#pullrequestreview-724899323), there is a slight issue with the proposed patch, as it translates the `--version` help string as soon as the `argparse` module is imported

[issue44864] [argparse] Do not translate user-provided strings in `ArgumentParser.add_subparsers()`

2021-08-08 Thread Jérémie Detrey
New submission from Jérémie Detrey : Dear all, In the `argparse` module, the `ArgumentParser.add_subparsers()` method may call the `_()` translation function on user-provided strings. See e.g. 3.9/Lib/argparse.py:1776 and 3.9/Lib/argparse.py:L1777: def add_subparsers(self, **kwargs

[issue2190] MozillaCookieJar ignore HttpOnly cookies

2015-01-07 Thread Jérémie Detrey
Jérémie Detrey added the comment: Dear all, In fact, this cookie.txt format is still used by curl. For instance, see https://github.com/bagder/curl/blob/curl-7_39_0/lib/cookie.c#L644 which clearly shows support for the #HttpOnly_ prefix. Therefore, supporting this format

[issue2190] MozillaCookieJar ignore HttpOnly cookies

2015-01-07 Thread Jérémie Detrey
Changes by Jérémie Detrey jeremie.det...@loria.fr: -- versions: +Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2190

[issue17164] MozillaCookieJar does not handle session cookies

2015-01-07 Thread Jérémie Detrey
Jérémie Detrey added the comment: Dear all, Here is a small tentative patch for fixing this issue. Expiry times for session cookies are now written as 0, and both 0 and are parsed as valid expiry times for session cookies. Cheers, Jérémie. -- keywords: +patch nosy: +jdetrey

[issue17164] MozillaCookieJar does not handle session cookies

2015-01-07 Thread Jérémie Detrey
Jérémie Detrey added the comment: Hi again, Attached is a patch for adding test cases to test_cookiejar. Cheers, Jérémie. -- Added file: http://bugs.python.org/file37629/session-cookies-test.patch ___ Python tracker rep...@bugs.python.org http

[issue20581] Incorrect behaviour of super() in a metaclass-created subclass

2014-02-10 Thread Jérémie Detrey
Changes by Jérémie Detrey jeremie.det...@loria.fr: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20581 ___ ___ Python