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 c
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 bu
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
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 by PR 127
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 (at
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:
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
<http://bugs.python.
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.
--
k
Changes by Jérémie Detrey :
--
versions: +Python 3.3, Python 3.4, Python 3.5, Python 3.6
___
Python tracker
<http://bugs.python.org/issue2190>
___
___
Python-bug
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
Changes by Jérémie Detrey :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue20581>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jérémie Detrey:
Dear all,
I've been noticing a strange (and probably incorrect) behaviour of the super()
function when using a metaclass in order to automatically replace a class
declaration by a subclass of itself.
In the attached test case, the function `wrap
15 matches
Mail list logo