Lisandro Dalcin wrote:
> On Wed, Oct 22, 2008 at 2:30 AM, Greg Ewing <[EMAIL PROTECTED]> wrote:
>> Jim Kleckner wrote:
>>
>>>    TypeError: Cannot convert instance to file
>>>
>>> Ideas?  At the moment, I just forgo the convenience of turning on
>>> that debug within doctest.
>
> Well, use 'sys.__stdout__' .  That should always be a 'file' instance
> actually associated to standard output.

Thanks for the pointer.

>> You could write your output the Pythonic way instead of
>> trying to obtain a file descriptor.

> Greg, It seems Jim is calling some testing code in pure C and wrapped
> with Cython, and it seems such code need FILE* pointer. What are you
> suggesting here? I'm missing something?

You are both right.

The C code should probably be upgraded to Cython when I get a round tuit.

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to