Created
March 2, 2016 12:52
-
-
Save ak1211/142626a4f30c16d738b0 to your computer and use it in GitHub Desktop.
パイプを用意して,出力パイプをファイルディスクリプタ3番にする(もし'3>'の指定が無ければエラーになる)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipR, pipW = os.pipe () | |
os.close (pipR) | |
os.dup2 (3, pipW) | |
unterminated_file = os.fdopen (pipW, "w") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment