[issue45929] extend json.tool --json-lines to ignore empty rows

2021-11-29 Thread Vito De Tullio
New submission from Vito De Tullio : It would be useful to let json.tool support empty rows during handling of json lines generally speaking, this tolerance is already present in parsers like srsly and jsonlines actual behavior: # happy scenario $ echo -e '{"foo":1}\n{"b

[issue45929] extend json.tool --json-lines to ignore empty rows

2021-11-29 Thread Vito De Tullio
Change by Vito De Tullio : -- keywords: +patch pull_requests: +28086 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29858 ___ Python tracker <https://bugs.python.org/issu

[issue45929] extend json.tool --json-lines to ignore empty rows

2021-12-08 Thread Vito De Tullio
Vito De Tullio added the comment: My final goal is to preserve the empty lines - I think I can do some bash magic, but maybe something more complex that a simple sed call. FWIW on https://jsonlines.org/#line-separator-is-n I see "The last character in the file may be a line separator

[issue42424] add constructor that support multiple context managers to contextlib.ExitStack and contextlib.AsyncExitStack

2020-11-21 Thread Vito De Tullio
New submission from Vito De Tullio : The enhancement is to add a __init__ method to both contextlib.ExitStack and contextlib.AsyncExitStack, so that you can pass (async)context managers directly in the costructor. additionally, a new "context_managers" / "async_context_man

[issue5807] ConfigParser.RawConfigParser it's an "old-style" class

2009-04-21 Thread Vito De Tullio
New submission from Vito De Tullio : RawConfigParser does not inherit from object, so using (to make an example) super() it's impossible. Python 2.6 (r26:66714, Feb 3 2009, 20:52:03) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type "help", "copyright", &

[issue5901] missing meta-info in documentation pdf

2009-05-01 Thread Vito De Tullio
New submission from Vito De Tullio : from http://docs.python.org/download.html and http://docs.python.org/3.0/download.html you can download the python documentation in many formats (html, pdf, txt), I think auto-generated by the .rst source. While html and txt does not, the pdf format