[issue44986] Date formats in help messages of argparse

2021-09-02 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44986] Date formats in help messages of argparse

2021-08-26 Thread Matías Senger
Matías Senger added the comment: With this change there should be no need to escape anything, and it is still compatible with the old formatting. Plus, with the current implementation if you forget to escape something like %Y the error message is not helpful at all and only happens when

[issue44986] Date formats in help messages of argparse

2021-08-25 Thread Julian Berman
Julian Berman added the comment: This is documented already I believe: https://docs.python.org/3/library/argparse.html#help > As the help string supports %-formatting, if you want a literal % to appear > in the help string, you must escape it as %%. -- nosy: +Julian

[issue44986] Date formats in help messages of argparse

2021-08-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg400243 ___ Python tracker ___ ___ Python-bugs-list

[issue44986] Date formats in help messages of argparse

2021-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think anything like this should be done. Besides breaking existing '%%' markup, it invents a new %-formatting notation. -- nosy: +rhettinger type: crash -> enhancement ___ Python tracker

[issue44986] Date formats in help messages of argparse

2021-08-23 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +26375 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27923 ___ Python tracker

[issue44986] Date formats in help messages of argparse

2021-08-23 Thread Matías Senger
New submission from Matías Senger : If the help message of an argument in argparse contains a date format, e.g. %Y-%m-%d, it crashes when printing the help after being invoked with the -h option. Uploaded an example. -- components: Library (Lib) files: deleteme.py messages: 400183