blocks - send input to python subprocess pipeline

前端 未结 11 1345
轻奢々
轻奢々 2021-01-30 09:22

I\'m testing subprocesses pipelines with python. I\'m aware that I can do what the programs below do in python directly, but that\'s not the point. I just want to test the pipel

11条回答
  •  执念已碎
    2021-01-30 09:42

    What about using a SpooledTemporaryFile ? This bypasses (but perhaps doesn't solve) the issue:

    http://docs.python.org/library/tempfile.html#tempfile.SpooledTemporaryFile

    You can write to it like a file, but it's actually a memory block.

    Or am I totally misunderstanding...

提交回复
热议问题