New submission from Zac Medico <zmed...@gentoo.org>:

With python-3.0, array.fromfile() fails to insert values when EOFError
is raised. I ran the attached test case with python-3.0.1 and got the
same result on both linux and windows. With python-2.x, the values are
properly inserted despite an EOFError, as the documentation states it
should:

array.fromfile(f, n)

Read n items (as machine values) from the file object f and append them
to the end of the array. If less than n items are available, EOFError is
raised, but the items that were available are still inserted into the
array. f must be a real built-in file object; something else with a
read() method won’t do.

----------
components: Library (Lib)
files: fromfile_eof.py
messages: 82558
nosy: zmedico
severity: normal
status: open
title: array.fromfile() fails to insert values when EOFError is raised
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file13143/fromfile_eof.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5334>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to