This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:38sbtsetrecipients: + sbt
2012-09-10 14:16:38sbtsetmessageid: <1347286598.53.0.580767825859.issue15904@psf.upfronthosting.co.za>
2012-09-10 14:16:38sbtlinkissue15904 messages
2012-09-10 14:16:37sbtcreate