Antoine Pitrou <pitrou at free.fr> added the comment: I've posted a preliminary patch for the close()-should-raise-an-error approach here: #815646 ---------- nosy: +pitrou ____________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue595601> ____________________________________