View Single Post
Old 01-23-2020, 01:55 PM   #12
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I'd also probably prefer https://docs.python.org/3/library/su...subprocess.run to Popen, especially if you don't need to capture the output, but that's extremely nitpicky (the overhead isn't really in the mess of dupe/pipe needed to capture output, it's the fork. And on the old glibc the Kindle runs, posix_spawn still sucks, so there's no silver bullet here).

(Or, god forbid, os.system(), which spawns an extra shell for nothing).

Last edited by NiLuJe; 01-23-2020 at 02:00 PM.
NiLuJe is offline   Reply With Quote