Message264438
| Author |
xiang.zhang |
| Recipients |
docs@python, xiang.zhang |
| Date |
2016年04月28日.17:37:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1461865033.17.0.77697230941.issue26875@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The code given in mmap doc
import mmap
with mmap.mmap(-1, 13) as mm:
mm.write("Hello world!")
should be
mm.write(b"Hello world!")
The *b* is left out and then causes exception. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年04月28日 17:37:13 | xiang.zhang | set | recipients:
+ xiang.zhang, docs@python |
| 2016年04月28日 17:37:13 | xiang.zhang | set | messageid: <1461865033.17.0.77697230941.issue26875@psf.upfronthosting.co.za> |
| 2016年04月28日 17:37:13 | xiang.zhang | link | issue26875 messages |
| 2016年04月28日 17:37:13 | xiang.zhang | create |
|