- Feb. 27, 2013, 4:35 p.m.
Checked this on Python 3.3 on W32. Doesn't apply.
Wrote a program (in C) that just writes zero bytes into stdout and stderr in a loop (1 write into each, per iteration), and takes one argument - number of bytes to write).
Wrote a Python script that runs that program via subprocess, with two pipes, and receives the output via communicate() method.
Works as intended - memory usage visibly grows, and length of the returned variables is correct. It also takes longer to run as the argument grows.
I stopped at 16 megabytes, didn't try more.
with Markdown syntax.
Comments are not displayed until they are approved by a
moderator. Moderators will not approve unless the comment
contributes value to the discussion.