Message170188
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()
<Failed assertion>
A box pops up with
Program: C:\Repos\cpython-27\PCbuild\python_d.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\close.c
Line: 48
Expression: (_osfile(fh) & FOPEN)
Python 3.2 and 3.3 give IOError(EBADF, ...) as expected.
Compare #15261 and #15263. |
|
Date |
User |
Action |
Args |
2012-09-10 14:16:38 | sbt | set | recipients:
+ sbt |
2012-09-10 14:16:38 | sbt | set | messageid: <1347286598.53.0.580767825859.issue15904@psf.upfronthosting.co.za> |
2012-09-10 14:16:38 | sbt | link | issue15904 messages |
2012-09-10 14:16:37 | sbt | create | |
|