Message 215837 - Python tracker

Message215837

Author Dima.Tisnek
Recipients Dima.Tisnek, benjamin.peterson
Date 2014-04-09.19:22:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397071374.07.0.660771571536.issue21191@psf.upfronthosting.co.za>
In-reply-to
Content
Benjamin, I think you missed the key point:

file + matching mode -> fd eaten, object created
file + mode mismatch -> fd remains, exception raised
dir + matching mode -> fd eaten, exception raised

The issue is about resouce (fd) management

Thus, how can user code handle the error without either leaking file descriptor or possibly closing someone else's file descriptor?
History
Date User Action Args
2014-04-09 19:22:54Dima.Tisneksetrecipients: + Dima.Tisnek, benjamin.peterson
2014-04-09 19:22:54Dima.Tisneksetmessageid: <1397071374.07.0.660771571536.issue21191@psf.upfronthosting.co.za>
2014-04-09 19:22:54Dima.Tisneklinkissue21191 messages
2014-04-09 19:22:53Dima.Tisnekcreate