Message228380
As much as I like the idea of using OS handles everywhere, the compatibility issues are probably too significant, and you can't mix CRT methods with OS methods because the CRT does its own buffering. Of course, you can open a file with the Win32 API and immediately call open_osfhandle() safely enough.
It seems this should be solvable with the opener argument of open(). Was that discussed and I missed it? Would the ability to write "open(f, opener=with_same_sharing_as(f))" be okay/useful/relevant for all platforms? |
|
Date |
User |
Action |
Args |
2014-10-03 21:07:55 | steve.dower | set | recipients:
+ steve.dower, loewis, ncoghlan, pitrou, tim.golden, dabrahams, BreamoreBoy, sbt, piotr.dobrogost, zach.ware |
2014-10-03 21:07:55 | steve.dower | set | messageid: <1412370475.93.0.342596057515.issue15244@psf.upfronthosting.co.za> |
2014-10-03 21:07:55 | steve.dower | link | issue15244 messages |
2014-10-03 21:07:55 | steve.dower | create | |
|