Message8048

Author jamesls
Recipients jamesls
Date 2013-06-18.04:04:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371528254.46.0.36850310526.issue2062@psf.upfronthosting.co.za>
In-reply-to
Content
Using the latest jython2.7, I'm not able to use bytearray with os.write.
In CPython2.7.5 I get:

>>> import os
>>> fd = os.open('/tmp/foo', os.O_RDWR)
>>> os.write(fd, bytearray('foobar'))
6

From jython 2.7b1 I get:

>>> import os
>>> fd = os.open('/tmp/foo', os.O_RDWR)
>>> os.write(fd, bytearray('foobar'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: write(): 2nd arg can't be coerced to String
History
Date User Action Args
2013-06-18 04:04:14jameslssetrecipients: + jamesls
2013-06-18 04:04:14jameslssetmessageid: <1371528254.46.0.36850310526.issue2062@psf.upfronthosting.co.za>
2013-06-18 04:04:14jameslslinkissue2062 messages
2013-06-18 04:04:13jameslscreate