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.

> 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?



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



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to