[issue15904] file,close() can fail assert on Windows in 2.7

2020-04-16 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ _

[issue15904] file,close() can fail assert on Windows in 2.7

2020-04-16 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue15904] file,close() can fail assert on Windows in 2.7

2012-09-10 Thread Richard Oudkerk
Richard Oudkerk added the comment: If buffering is off then they all fail the assertion except isatty(). -- ___ Python tracker ___ ___

[issue15904] file,close() can fail assert on Windows in 2.7

2012-09-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is it also the case for other file operations? Here is a list that may use a closed FILE object: f.write('something') f.read(1) print >>f, 'something' f.seek(0) f.tell() f.truncate(0) f.flush() f.isatty() f.readlines()

[issue15904] file,close() can fail assert on Windows in 2.7

2012-09-10 Thread Richard Oudkerk
New submission from Richard Oudkerk: With Python 2.7 on Windows the following crashes with an assertion: >>> import os [43042 refs] >>> f = open("foobar", "wb") [43048 refs] >>> os.close(f.fileno()) [43048 refs] >>> f.close() A box pops up with Program: C:\