We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = <Date 2016-04-28.19:48:00.413> created_at = <Date 2016-04-28.17:37:13.123> labels = ['docs'] title = 'mmap doc gives wrong code example' updated_at = <Date 2016-04-28.19:48:43.142> user = 'https://github.com/zhangyangyu'
bugs.python.org fields:
activity = <Date 2016-04-28.19:48:43.142> actor = 'zach.ware' assignee = 'docs@python' closed = True closed_date = <Date 2016-04-28.19:48:00.413> closer = 'python-dev' components = ['Documentation'] creation = <Date 2016-04-28.17:37:13.123> creator = 'xiang.zhang' dependencies = [] files = ['42641'] hgrepos = [] issue_num = 26875 keywords = ['patch'] message_count = 3.0 messages = ['264438', '264445', '264446'] nosy_count = 4.0 nosy_names = ['docs@python', 'python-dev', 'zach.ware', 'xiang.zhang'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue26875' versions = ['Python 3.5', 'Python 3.6']
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
New changeset 5c8e1b98dc3f by Zachary Ware in branch '3.5': Issue bpo-26875: Fix mmap example https://hg.python.org/cpython/rev/5c8e1b98dc3f
New changeset aaf2ad84ae1c by Zachary Ware in branch 'default': Closes bpo-26875: Merge with 3.5 https://hg.python.org/cpython/rev/aaf2ad84ae1c
Thanks for the report and patch!
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: