Message8063
Mac OS X 10.8.3, using jython 2.7b1 I get:
import os
fd = os.open('testfile', os.O_RDWR|os.O_CREAT|os.O_APPEND)
os.write(fd, bytes('one'))
os.write(fd, bytes('two'))
os.write(fd, bytes('three'))
os.close(fd)
with open('testfile', 'rb') as f:
print(f.read())
# Output, first time run:
$ jython /tmp/repro.py
three
# Second time
$ jython /tmp/repro.py
threethree
On CPython 2.7.5 I get:
$ python /tmp/repro.py
onetwothree
$ python /tmp/repro.py
onetwothreeonetwothree |
|
Date |
User |
Action |
Args |
2013-07-14 19:32:15 | jamesls | set | recipients:
+ jamesls |
2013-07-14 19:32:15 | jamesls | set | messageid: <1373830335.62.0.240785905139.issue2068@psf.upfronthosting.co.za> |
2013-07-14 19:32:15 | jamesls | link | issue2068 messages |
2013-07-14 19:32:14 | jamesls | create | |
|