Message6499

Author dstromberg
Recipients dstromberg
Date 2011-04-19.02:08:27
SpamBayes Score 4.2624386e-08
Marked as misclassified No
Message-id <1303178907.87.0.0206118617444.issue1735@psf.upfronthosting.co.za>
In-reply-to
Content
In Jython 2.5.2 (I didn't see 2.5.2 in the version list) os.read() returns an object of type unicode, but should return an object of type str in Python 2.x's.

This is inconsistent with CPython 2.x and PyPy 1.4.1, both of which return str.

Because CPython 3.x's os.read() returns bytes (which are similar to 2.x str's), use of os.read() is perhaps becoming important for systems programming, where os.read() gives nice binary blobs in both 2.x and 3.x, without imposing any encoding assumptions on the data being read.
History
Date User Action Args
2011-04-19 02:08:27dstrombergsetrecipients: + dstromberg
2011-04-19 02:08:27dstrombergsetmessageid: <1303178907.87.0.0206118617444.issue1735@psf.upfronthosting.co.za>
2011-04-19 02:08:27dstromberglinkissue1735 messages
2011-04-19 02:08:27dstrombergcreate