a89e93e050
In CPython any operations on a file that has been closed already reaises a ValueError with message "I/O operation on closed file"