Consider the following:
with open(path, mode) as f: return [line for line in f if condition]
Will the file be closed properly, or does using return somehow bypass the context manager?
return
← Назад к списку