Message416535
os.stat on windows doesn't take an open file even though os.stat in os.supports_fd
>>> fd = open('tmp.tmp', 'w')
>>> fd
<_io.TextIOWrapper name='tmp.tmp' mode='w' encoding='cp1252'>
>>> os.stat(fd)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: stat: path should be string, bytes, os.PathLike or integer, not TextIOWrapper
>>> os.stat in os.supports_fd
True |
|
Date |
User |
Action |
Args |
2022-04-02 03:51:52 | snoopyjc | set | recipients:
+ snoopyjc |
2022-04-02 03:51:52 | snoopyjc | set | messageid: <1648871512.58.0.519594308427.issue47198@roundup.psfhosted.org> |
2022-04-02 03:51:52 | snoopyjc | link | issue47198 messages |
2022-04-02 03:51:52 | snoopyjc | create | |
|