[issue12806] argparse: Hybrid help text formatter

2021-01-04 Thread David Steele
David Steele added the comment: For those looking for a solution now, see https://pypi.org/project/argparse-formatter/ -- ___ Python tracker <https://bugs.python.org/issue12

[issue12806] argparse: Hybrid help text formatter

2020-09-07 Thread David Steele
David Steele added the comment: I've submitted FlexiHelpFormatter as PR22129. This adds the FlexiHelpFormatter class to argparse. It supports wrapping text, while preserving paragraphs. Bullet lists are supported. There are a number of differences, relative to the latest patch in the

[issue12806] argparse: Hybrid help text formatter

2020-09-07 Thread David Steele
Change by David Steele : -- keywords: +patch pull_requests: +21210 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22129 ___ Python tracker <https://bugs.python.org/issu

[issue12806] argparse: Hybrid help text formatter

2019-10-22 Thread David Steele
David Steele added the comment: I came across this thread after making a simple argparse formatter for preserving paragraphs. The submissions here look better than that effort. Here is a quick, hacky look at the patches from one perspective. I wanted to prefer ParagraphFormatterML, but

[issue24241] webbrowser default browser detection and/or public API for _trylist.

2017-02-18 Thread David Steele
David Steele added the comment: Jaysinh, Thanks for the feedback. I'm adding the documentation now. As I noted in github, I'm not sure what the preferred exception handling would be for xdg-settings. -- ___ Python tracker <http://bu

[issue24241] webbrowser default browser detection and/or public API for _trylist.

2017-02-18 Thread David Steele
Changes by David Steele : -- pull_requests: +123 ___ Python tracker <http://bugs.python.org/issue24241> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24241] webbrowser default browser detection and/or public API for _trylist.

2017-02-13 Thread David Steele
David Steele added the comment: See https://github.com/python/cpython/pull/85 -- ___ Python tracker <http://bugs.python.org/issue24241> ___ ___ Python-bugs-list m

[issue24241] webbrowser default browser detection and/or public API for _trylist.

2015-07-17 Thread David Steele
David Steele added the comment: Patch attached, to sort the desktop default browser to the top of _tryorder. -- keywords: +patch Added file: http://bugs.python.org/file39940/preferredbrowser.diff ___ Python tracker <http://bugs.python.org/issue24

[issue24241] webbrowser default browser detection and/or public API for _trylist.

2015-05-19 Thread David Steele
David Steele added the comment: On Tue, May 19, 2015 at 10:19 AM, R. David Murray wrote: ... > Would you like to propose a patch? My preferred solution would be a bit intrusive - check for and use xdg-settings or gi.repository.Gio to identify the default browser, and match the result agai

[issue24241] webbrowser (very often) doesn't support the 'new' parameter

2015-05-19 Thread David Steele
New submission from David Steele: When calling webbrowser.open*(), the module goes through a list of installed browsers, and uses the first one that succeeds, to process the request. The first 'browsers' in the 'X' list are 'xdg-open' and others of that ilk. The