implement a detach() method for BufferedIOBase and TextIOBase #5883
7 files changed