Message8048
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 |
|
Date |
User |
Action |
Args |
2013-06-18 04:04:14 | jamesls | set | recipients:
+ jamesls |
2013-06-18 04:04:14 | jamesls | set | messageid: <1371528254.46.0.36850310526.issue2062@psf.upfronthosting.co.za> |
2013-06-18 04:04:14 | jamesls | link | issue2062 messages |
2013-06-18 04:04:13 | jamesls | create | |
|