You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2022-04-02.04:31:08.895>created_at=<Date2022-04-02.03:51:52.564>labels= ['type-bug', 'invalid', '3.10']
title="os.stat on windows doesn't take an open file even though os.stat in os.supports_fd"updated_at=<Date2022-04-02.04:31:08.892>user='https://github.com/snoopyjc'
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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: