> | No, I've created a file descriptor, which is, by definition, an integer. > | It has nothing to do with C. This is all defined by the POSIX > | interface. For example, the getdtablesize(2) man page says: > | > | "The entries in the descriptor table are numbered with small integers > | starting at 0. The call getdtablesize() returns the size of this table." > [... snip ...] > > I'm with Steven here. > > You've made a number that can be used with calls that access the > OS file descriptor table. But it isn't a file descriptor. (Yes, the > in-program number is just a number either way.)
Steven, don't be misled. POSIX is not the model to look to -- it does not acknowledge that files are actual objects that reside on a piece of hardware. It is not simply an integer. Mark -- http://mail.python.org/mailman/listinfo/python-list