Message138227
This issue seems to be reproduced in following way.
1. Attach USB flash drive. (On my machine, it was attached as E drive)
2. Run python interactive shell and run following commands.
(Confirmed on Python2.6)
> import mmap
> f = open("e:/temp.tmp", "w+b")
> f.write("foo")
> f.flush()
> m = mmap.mmap(f.fileno(), 3)
> m[:] = "xxx"
3. Detach USB flash drive violently here! (Without safety mechanism
to detach USB flash drive, just plug it off) Note that
python shell is still running.
4. Enter following command in python shell.
> m.flush()
It returns *0*. (Means failure) |
|
Date |
User |
Action |
Args |
2011-06-13 03:00:20 | ocean-city | set | recipients:
+ ocean-city, pitrou, schmir, tim.golden, brian.curtin |
2011-06-13 03:00:20 | ocean-city | set | messageid: <1307934020.5.0.90557610988.issue2122@psf.upfronthosting.co.za> |
2011-06-13 03:00:19 | ocean-city | link | issue2122 messages |
2011-06-13 03:00:19 | ocean-city | create | |
|