[issue7610] Cannot use both read and readline method in same ZipExtFile object

2009-12-31 Thread lucifer

Changes by lucifer :


--
components: Extension Modules
nosy: lucifer
severity: normal
status: open
title: Cannot use both read and readline method in same ZipExtFile object
type: behavior
versions: Python 2.6

___
Python tracker 
<http://bugs.python.org/issue7610>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7610] Cannot use both read and readline method in same ZipExtFile object

2009-12-31 Thread lucifer

New submission from lucifer :

open a file in the zip file through ZipFile.open method, if invoke read 
method after readline method in the ZipExtFile object, the data is not 
correct.

I was trying to get a ZipExtFile and pass it to pickle.load(f), a 
exception was thrown.

The reason is readline will keep a linebuffer, but read only use 
readbuffer. After invoke readline, there will be some missing data in 
linebuffer when invoke read method

--

___
Python tracker 
<http://bugs.python.org/issue7610>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com