Skip Montanaro <skip.montan...@gmail.com> writes:

> I don't see any sort of "fdopen" or "freopen" equivalent mentioned in the io
> module documentation. Is this possible in a clean way?
>

There is an os.fdopen(), so maybe

  newf = os.fdopen(fp.fileno())

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  |                 -- Fortunato Depero, 1929.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to