[issue23754] Add a new os.read_into() function to avoid memory copies

2015-05-25 Thread STINNER Victor
STINNER Victor added the comment: Without more interested, I chose to defer this issue. Feel free to reopen it if you need it for more use cases, or if you are interested to implement it. -- resolution: -> postponed status: open -> closed ___ Python

[issue23754] Add a new os.read_into() function to avoid memory copies

2015-03-29 Thread STINNER Victor
STINNER Victor added the comment: > Why do you want to optimize the pure Python FileIO? I gave more examples than FileIO in this issue. -- ___ Python tracker ___ ___

[issue23754] Add a new os.read_into() function to avoid memory copies

2015-03-23 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23754] Add a new os.read_into() function to avoid memory copies

2015-03-23 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue23754] Add a new os.read_into() function to avoid memory copies

2015-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why do you want to optimize the pure Python FileIO? -- nosy: +pitrou ___ Python tracker ___ ___ Pyth

[issue23754] Add a new os.read_into() function to avoid memory copies

2015-03-23 Thread STINNER Victor
STINNER Victor added the comment: os.read_into() may be used by the following functions. subprocess.Popen._execute_child(): # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe

[issue23754] Add a new os.read_into() function to avoid memory copies

2015-03-23 Thread STINNER Victor
New submission from STINNER Victor: Sockets have a recv_into() method, io.IOBase has a readinto() method, but there is no os.read_into() function. It would avoid memory copies. It would benefit to the Python implementation FileIO (readall() and readinto() methods), see the issue #21859. -