Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
対応する開始ログがない終了ログは,標準エラー出力に送る
for item in itertools.ifilter(lambda it:it["start log"] == None, terminate_session_logs):
print >> sys.stderr, "This record,"
print >> sys.stderr, item["line"] ,
print >> sys.stderr, " has no relationship!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment