Re: [Python-ideas] file.read() doesn't read the whole file

Sreejith K <sreejithemk@gmail.com> wrote:
If you think break and continue are behaving differently in a python program that is providing a fuse filesystem implementation, then your understanding of what your code is doing is faulty in some fashion. The fact that python is being called from fuse isn't going to change the semantics of the language. So I think you need to do some debugging to understand what's actually going on when your code gets called. As someone else suggested, if you are perceiving that the data read is short because of what you see at the os level when reading the data from the fuse-plus-your-application filesystem, that is after your python code returns the data to the fuse infrastructure, then that is probably where your problem is and not in the python read itself. (I'm assuming here that the read in question is taking place in a python method called from fuse and is reading real data from a real file...if that assumption is wrong and you are actually reading from a file _provided through_ fuse, then you need to look to your fuse file system implementation for answers.) -- R. David Murray http://www.bitdance.com
participants (1)
-
R. David Murray