[issue1539381] Add readinto method to StringIO and cStringIO

2018-07-24 Thread Alan Justino


Alan Justino  added the comment:

Issued a related PR (https://github.com/python/cpython/pull/8451) to allow 
SpooledTemporaryFile to propagate `readinto` calls to TemporaryFile, BytesIO or 
StringIO.

Of this ones, only StringIO will fail.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1539381] Add readinto method to StringIO and cStringIO

2018-07-24 Thread Roundup Robot


Change by Roundup Robot :


--
pull_requests: +7973

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1539381] Add readinto method to StringIO and cStringIO

2018-07-24 Thread Alan Justino


Alan Justino  added the comment:

It affects SpooledTemporaryFile too. Because it switches between StringIO, 
BytesIO and TemporaryFile internally. Only StringIO have not this interface.

Discovered trying to `pickle.load` a remote storage file.

Please reopen.

--
nosy: +alanjds

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1539381] Add readinto method to StringIO and cStringIO

2014-11-03 Thread Silvio Ricardo Cordeiro

Silvio Ricardo Cordeiro added the comment:

BufferedReader assumes that readinto is defined, but that's not the case for 
StringIO's. In the end, this cripples StringIO objects, because their data can 
never be peek()'ed as with all other file objects.

--
components: +IO -Library (Lib)
nosy: +silvioricardoc
type:  - behavior
versions: +Python 2.7, Python 3.2 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1539381
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com