Message170188
| Author |
sbt |
| Recipients |
sbt |
| Date |
2012年09月10日.14:16:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1347286598.53.0.580767825859.issue15904@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|