On 7/09/21 5:46 am, C. Titus Brown via Python-ideas wrote:
Maybe Greg missed that DictReader.open didn’t exist and was in fact what I was 
asking for!

Sorry about that, I thought you were asking for context manager methods
to be added to an existing file-like object.

If csv.DictReader had a close() method you could use closing() on it,
but it seems it doesn't, so closing() doesn't really help here.

--
Greg

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/SI55YOIAXFMWS5EUPXQZ4OZHYMQAHGNO/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to