reading a python file object in c extension crashes python

2005-06-13 Thread travis ray
Hi, I have an extension in which a file object is created in python and passed down to a c extension which attempts to read from it or write to it. Writing to the file pointer seems to work okay, but reading from it results in EBADF. It also causes python to crash on exit. I've attached the min

reading a python file object in c extension crashes python

2005-06-13 Thread travis ray
Hi, I have an extension in which a file object is created in python and passed down to a c extension which attempts to read from it or write to it. Writing to the file pointer seems to work okay, but reading from it results in EBADF and causes python to crash on exit. I've attached the minimal (