This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zmedico
Recipients zmedico
Date 2009-02-21.04:07:55
SpamBayes Score 5.23724e-05
Marked as misclassified No
Message-id <1235189293.4.0.0829880938906.issue5334@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-02-21 04:08:13zmedicosetrecipients: + zmedico
2009-02-21 04:08:13zmedicosetmessageid: <1235189293.4.0.0829880938906.issue5334@psf.upfronthosting.co.za>
2009-02-21 04:07:57zmedicolinkissue5334 messages
2009-02-21 04:07:56zmedicocreate