[issue26875] mmap doc gives wrong code example

2016-04-28 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report and patch! -- nosy: +zach.ware versions: +Python 3.5, Python 3.6 ___ Python tracker ___

[issue26875] mmap doc gives wrong code example

2016-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c8e1b98dc3f by Zachary Ware in branch '3.5': Issue #26875: Fix mmap example https://hg.python.org/cpython/rev/5c8e1b98dc3f New changeset aaf2ad84ae1c by Zachary Ware in branch 'default': Closes #26875: Merge with 3.5 https://hg.python.org/cpython/r

[issue26875] mmap doc gives wrong code example

2016-04-28 Thread Xiang Zhang
New submission from Xiang Zhang: 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. -- assignee: docs@python components: Documentation files: mmap_doc.pa