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
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
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
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
David Steele added the comment:
See https://github.com/python/cpython/pull/85
--
___
Python tracker
<http://bugs.python.org/issue24241>
___
___
Python-bugs-list m
Changes by David Steele :
--
pull_requests: +123
___
Python tracker
<http://bugs.python.org/issue24241>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
10 matches
Mail list logo