Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue1286] fileinput, StringIO, and cStringIO do not support the with protocol

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Dec 20, 2009, 9:36 AM

Post #1 of 2 (225 views)
Permalink
[issue1286] fileinput, StringIO, and cStringIO do not support the with protocol

Senthil Kumaran <orsenthil [at] gmail> added the comment:

I reviewed the patches attached.
- The patch to add Context Manager support for fileinput.py seems good.
It has docs too.

This discussion did not conclude on the need for Context Manager for
StringIO. With py3k having it, it should be good for py2.7 to provide
the support too. The attached patch seems good enough, Docs can be added
further.

----------
nosy: +orsenthil

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue1286>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Dec 28, 2009, 12:46 AM

Post #2 of 2 (159 views)
Permalink
[issue1286] fileinput, StringIO, and cStringIO do not support the with protocol [In reply to]

Georg Brandl <georg [at] python> added the comment:

FWIW, for the sake of consistency I'm +1 on supporting the context
manager protocol on all file-like objects in the stdlib.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue1286>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.