「stdout and buffer」の編集履歴(バックアップ)一覧はこちら
「stdout and buffer」(2009/07/08 (水) 13:50:31) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
I just realized my std output comes out only when my wxPython program close.
This is not good for log! Need to disable cache!
#highlight(python){{
import sys
myFile= open( "a.log", "w", 0 )
sys.stdout= myFile
}}
OR
#highlight(python){{
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
}}
I just realized my std output comes out only when my wxPython program close.
This is not good for log! Need to disable cache!
#highlight(python){{
import sys
myFile= open( "a.log", "w", 0 )
sys.stdout= myFile
}}
OR
#highlight(python){{
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
}}