Author vstinner
Recipients Preston Moore, giampaolo.rodola, vstinner, zach.ware
Date 2018-07-11.14:50:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531320614.86.0.56676864532.issue30400@psf.upfronthosting.co.za>
In-reply-to
Content
> The definitive solution to this problem would theoretically be to have all these interconnected functions pass fds instead of "paths" but of course that is hardly possible.

I agree that it's the way to go.

Python makes little difference between a path and file descriptor. For example, os.stat() accepts both a filename (string) or a file descriptor (integer).

Even if we cannot fix everything, it makes sense to me to try to fix at least shutil.copyfile(). Even we cannot modify existing other public copy*() functions to handle file descriptors, maybe we can add private helper functions accepting file descriptors, and modify existing public functions to reuse them?
History
Date User Action Args
2018-07-11 14:50:14vstinnersetrecipients: + vstinner, giampaolo.rodola, zach.ware, Preston Moore
2018-07-11 14:50:14vstinnersetmessageid: <1531320614.86.0.56676864532.issue30400@psf.upfronthosting.co.za>
2018-07-11 14:50:14vstinnerlinkissue30400 messages
2018-07-11 14:50:14vstinnercreate