Re: [Python-ideas] Add output() helper function to subprocess module

2019-04-05 Thread Calvin Spealman
This is probably the most common first use case someone has when trying to use subprocess for the first time and I think it has always been a bit of a wart that, given all the helpers and wrappers the subprocess module already has, it lacks one for that very obvious and common need. Yes, run() cov

[Python-ideas] Python list of list matrixes without NumPy

2019-04-05 Thread Juancarlo AƱez
The semantics of list operators are congruent, but unintuitive sometimes. For example, I've fallen over this many times: >>> truth_matrix = [[False] * n ] * m It doesn't create what you'd want. The only safe way I know to creat an NxM matrix is: >>> truth_matrix = [ [False for _ in range(n) fo