While reviewing Python iterators contexts, a file remains open after an exception. Which action best addresses the problem?
Answer options
- A. Expose an iterator over rows
- B. Yield each parsed record
- C. Use a with statement
- D. Use an async context manager