[issue35192] pathlib mkdir throws FileExistsError when not supposed to

2019-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing this as duplicate of issue29694. I hope this is backported to Ubuntu repos and there is not much pending work to this issue. Thanks. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> race

[issue35192] pathlib mkdir throws FileExistsError when not supposed to

2018-11-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Thank your for your response. I'm running python 3.5.2. The linked issue is > indeed a duplicate of this one. Thanks for the confirmation and script. > I'm running Ubuntu 16.04.5 LTS. I don't know if you know anything about > Ubuntu's release

[issue35192] pathlib mkdir throws FileExistsError when not supposed to

2018-11-09 Thread Adam Dunlap
Adam Dunlap added the comment: Thank your for your response. I'm running python 3.5.2. The linked issue is indeed a duplicate of this one. To reproduce, you can run two instances of the attached script at the same time, i.e. python3 pymkdir.py & python3 pymkdir.py. It is a race condition so

[issue35192] pathlib mkdir throws FileExistsError when not supposed to

2018-11-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. There was a related issue : issue29694 . This was fixed in 3.7 and was backported with https://github.com/python/cpython/commit/d7abeb7024b9755c291c29bdc8c4494246e975ad (3.5.4 and above) . Can you please specify the full

[issue35192] pathlib mkdir throws FileExistsError when not supposed to

2018-11-08 Thread Adam Dunlap
New submission from Adam Dunlap : I have 2 processes (one C, one python) that are started at the same time and both need a certain directory tree to exist to continue, so both processes create the directory tree while ignoring errors about it already existing. In the python process, I'm