Hirokazu Yamamoto <[email protected]> added the comment:
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)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue2122>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com