[issue10125] Closing a file within its writelines method causes segfault

2010-10-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: r85574 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10125] Closing a file within its writelines method causes segfault

2010-10-16 Thread intuited
New submission from intuited : Discovered when using the current Ubuntu 10.04 package of Python: 2.6.5-0ubuntu1 Reproducible with :: outfile = open("tmpout", "w") outfile.writelines(f() or "line" for f in (outfile.close,)) This problem is probably most likely to be encountered when usi