[issue25639] open 'PhysicalDriveN' on windows fails (since python 3.5) with OSError: [WinError 1] Incorrect function

2015-11-17 Thread Roman Kozhemiakin
Roman Kozhemiakin added the comment: >I don't know the physical disk type on Windows. Can you read and write from >such "file" type? Yes this "files" can be readed and writed (with restriction - size of the data must be a multiple of the sector size) in py

[issue25639] open 'PhysicalDriveN' on windows fails (since python 3.5) with OSError: [WinError 1] Incorrect function

2015-11-16 Thread Roman Kozhemiakin
New submission from Roman Kozhemiakin: open('.\\PHYSICALDRIVE1','rb',0) fails since python 3.5 At the end of _io_FileIO___init___impl function _Py_fstat call raise OSError: [WinError 1] Incorrect function _Py_fstat result not used on windows in this place. 4