Re: [Python-ideas] for line in input with open(path) as input...

Feb. 2, 2013
2:05 p.m.
*From:* Serhiy Storchaka <storchaka@gmail.com> *Date:* February 2, 2013 5:50 AM *To:* python-ideas@python.org *Subject:* [Python-ideas] for line in input with open(path) as input... When should iterwith() call __exit__()? *From:* Shane Green <shane@umbrellacode.com> *Date:* February 2, 2013 5:55 AM *To:* Serhiy Storchaka <storchaka@gmail.com> *CC:* python-ideas@python.org *Subject:* [Python-ideas] for line in input with open(path) as input... iterwith() doesn't need to: __exit__() is invoked automatically when iteration completes and the loop exits.
4428
Age (days ago)
4428
Last active (days ago)
0 comments
1 participants
participants (1)
-
Shane Green