Message138227
| Author |
ocean-city |
| Recipients |
brian.curtin, ocean-city, pitrou, schmir, tim.golden |
| Date |
2011年06月13日.03:00:19 |
| SpamBayes Score |
4.3838027e-05 |
| Marked as misclassified |
No |
| Message-id |
<1307934020.5.0.90557610988.issue2122@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|
History
|
|---|
| 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 |
|