[Python-Dev] Help with inotify (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Thu Oct 27 21:05:36 CEST 2005


Neal Becker wrote:

Yes, tried that- learned nothing.

Please go back further in the trace file. There must be a return value of -1 (EISDIR) somewhere in the file, try to locate that.

Here's strace. The write of '4' is where my code writes the value of fileno() to stdout, which is '4', which is correct - notice that open("test-inotify.py") returned '3':

The fragment you quote only refers to the part where it tries to format the traceback. The value '4' is never written, instead, it writes 4 spaces (the second argument is the bytes, the third is the number of bytes).

Regards, Martin



More information about the Python-Dev mailing list