void () { assertResolvesTo( """ if any({(comment := line).startswith('#') for line in lines}): print("First comment:", comment) <ref>""", PyTargetExpression.class, "comment" ); assertResolvesTo( """ if all((nonblank := line).strip() == '' for line in lines): pass else: print("First non-blank line:", nonblank) <ref>""", PyTargetExpression.class, "nonblank" ); }