Message321468
> 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? |
|
Date |
User |
Action |
Args |
2018-07-11 14:50:14 | vstinner | set | recipients:
+ vstinner, giampaolo.rodola, zach.ware, Preston Moore |
2018-07-11 14:50:14 | vstinner | set | messageid: <1531320614.86.0.56676864532.issue30400@psf.upfronthosting.co.za> |
2018-07-11 14:50:14 | vstinner | link | issue30400 messages |
2018-07-11 14:50:14 | vstinner | create | |
|