iterators passed to writelines() can close their files; don't segfault #10125
diff --git a/Misc/NEWS b/Misc/NEWS
index c2b674b..b597bd5 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@
 Core and Builtins
 -----------------
 
+- Issue #10125: Don't segfault when the iterator passed to ``file.writelines()``
+  closes the file.
+
 - Issue #9997: Don't let the name "top" have special significance in scope
   resolution.