Matthew R. Becker
Matthew R. Becker
I think we have to write the file with zero bytes and then on opening either delete it if it is zero length for rw or build a read-only emulation...
We could also raise for raise for read attempts on empty files
Fair point on a that being a bug. I guess the question is whether we should or should not match the python vs fits file semantics. We should decide on...
Ok. I agree then that adding an explicit error that is raised if an empty file is closed, while not pythonic, is the best way to match cfitsio in a...
It is not fully python semantics currently IIUIC. Opening an empty file for `rw` is valid for a generic python file.
Ack you are right that if we error on write this won't match cfitsio.
We'd have to vendor those libs to make pip work out of the box.
No I mean we'd have to build them from source on the fly.
This is a very bad practice by the way. The proper fix is for you to install them as you did.
Should we be adding this patch to the main source code?