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 eryksun
Recipients eryksun, snoopyjc
Date 2022-04-02.04:31:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648873868.9.0.343710438113.issue47198@roundup.psfhosted.org>
In-reply-to
Content
You're mistaken about what `fd` is. It's a TextIOWrapper, which wraps a BufferedWriter, which buffers a FileIO raw file object, which accesses the open file number fd.fileno(). For example:

    >>> f = open('tmp.tmp','w')
    >>> os.stat(f.fileno()).st_size
    0
History
Date User Action Args
2022-04-02 04:31:09eryksunsetrecipients: + eryksun, snoopyjc
2022-04-02 04:31:08eryksunsetmessageid: <1648873868.9.0.343710438113.issue47198@roundup.psfhosted.org>
2022-04-02 04:31:08eryksunlinkissue47198 messages
2022-04-02 04:31:08eryksuncreate