Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
対応する終了ログがない開始ログは,次回実行時に処理するためにその行をファイルディスクリプタ3番に送る
for item in itertools.ifilter(lambda it:it["terminate log"] == None, start_session_logs):
print >> unterminated_file, item["line"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment