Message71

Author bckfnn
Recipients
Date 2000-11-18.19:09:11
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
In CPython, the read () method of file objects is stated to return the entire
contents of
the file.

When similar code is run under JPython, however, it frequently only seems to
return part of the
file.  It's as if it relies on the Java "read (buffer)" API which is not
guaranteed to actually read
the entire file, but never checks the results.

The best way to test this appears to be to try loading a reasonably long page
over a network connection,
as this is most likely to cause the JPython code to fail.

For Example:
  slashdotfile = urllib.urlopen ('http://www.slashdot.org/')
  page = slashdotfile.read ()
  print page

This will almost always only get about half the page under JPython.
History
Date User Action Args
2008-02-20 17:16:39adminlinkissue222816 messages
2008-02-20 17:16:39admincreate