Re: error on os.open API

2021-04-06 Thread Eryk Sun
On 4/5/21, Rami Khaldi wrote: > > It seems that the os.open API cannot distinguish between a permission error > and the fact that a directory cannot be opened like files. > The following script reproduces the scenario (tested on Python 3.8.2 > (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.19

Re: error on os.open API

2021-04-05 Thread Marco Ippolito
> It seems that the os.open API cannot distinguish between a permission error > and the fact that a directory cannot be opened like files. > The following script reproduces the scenario (tested on Python 3.8.2 > (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on > win32) :

Re: error on os.open API

2021-04-05 Thread Chris Angelico
On Tue, Apr 6, 2021 at 3:50 AM Rami Khaldi wrote: > > Hello, > > It seems that the os.open API cannot distinguish between a permission error > and the fact that a directory cannot be opened like files. > The following script reproduces the scenario (tested on Python 3.8.2 > (tags/v3.8.2:7b3ab59,

error on os.open API

2021-04-05 Thread Rami Khaldi
Hello, It seems that the os.open API cannot distinguish between a permission error and the fact that a directory cannot be opened like files. The following script reproduces the scenario (tested on Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32) :