Il y en a un de très bon d'argument pourquoi subprocess est bizarre. En lisant la doc on peut lire:
Note The data read is buffered in memory, so do not use this method if the data size is large or unlimited.
(pour communicate)
et
Warning Use communicate() rather than .stdin.write, .stdout.read or .stderr.read to avoid deadlocks due to any of the other OS pipe buffers filling up and blocking the child process.
pour stdout/stdin/stderr
Comme il n'y a pas d'autre moyen de communiquer avec le sous processus, je fais quoi si je ne veut pas deadlocker et si j'ai BEAUCOUP de donnée ?
# Pourquoi les gens critiquent toujours python avec de mauvais argument
Posté par Guillaum (site web personnel) . En réponse au journal Journal inutile : Python c'est complêtement pourri, j'ai un exemple. Évalué à 2.
Note The data read is buffered in memory, so do not use this method if the data size is large or unlimited.
(pour communicate)
et
Warning Use communicate() rather than .stdin.write, .stdout.read or .stderr.read to avoid deadlocks due to any of the other OS pipe buffers filling up and blocking the child process.
pour stdout/stdin/stderr
Comme il n'y a pas d'autre moyen de communiquer avec le sous processus, je fais quoi si je ne veut pas deadlocker et si j'ai BEAUCOUP de donnée ?