[Python-ideas] Re: Syntax proposal of for..in..if in regular for loops

2022-03-09 Thread Greg Ewing
On 8/03/22 12:32 pm, Chris Angelico wrote: All I can see is that changes get proposed on typing-sig and actually make it into the language, but changes that get proposed on python-ideas are invariably shot down in flames, Typing is an area of Python that is under active development, so it is

[Python-ideas] Re: suprocess.check_call and friends include STDERR in error message

2022-03-09 Thread Barry
> On 9 Mar 2022, at 14:42, mangelo...@gmail.com wrote: > > I often wish to perform the action of `subprocess.check_output`, i.e. print > STDOUT live, and check the return code is 0 on exit. However if there is an > error, I would like the STDERR to be printed. When looking at log files and

[Python-ideas] suprocess.check_call and friends include STDERR in error message

2022-03-09 Thread mangelozzi
I often wish to perform the action of `subprocess.check_output`, i.e. print STDOUT live, and check the return code is 0 on exit. However if there is an error, I would like the STDERR to be printed. When looking at log files and just seeing the return code is often not very beneficial. E.g.: