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
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
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
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
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo