PyShell - Re-direct output of a script to a file

Is it possible to re-direct output of a script to a file on PyShell?

Bitbucket thread says re-direction is not possible yet but has one of you tried it.

PyShell is integrated in an app that I am using. I understand it is basically meant for small snippet code/scripts but is there any other option that is equivalent and better than PyShell? PyShell seemingly is even better than PyCrust…

···

On Friday, October 25, 2013 11:26:31 AM UTC-7, kb wrote:

Is it possible to re-direct output of a script to a file on PyShell?