Eryk Sun <eryk...@gmail.com> added the comment:

The particular error reported here is due to pathlib, which is a duplicate of 
issue 33898. That said, since the OP is using 3.7, I've left this issue open in 
case someone wants to backport the win32_xstat_impl changes that enable stat() 
(and in particular setting st_mode) for Windows 'character' (e.g. //./NUL and 
//./CONIN$) and 'block' devices (e.g. //./C: and //./PhysicalDrive0). I don't 
recall why Steve Dower decided against backporting this update.

----------
components: +Library (Lib)
title: os.lstat() does not work with Window Dos devices -> os.stat() and 
os.lstat() fail  with Windows device paths
versions:  -Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39920>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to