[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

Bob Kline report at bugs.python.org
Mon Jul 27 11:21:25 EDT 2020


New submission from Bob Kline <bkline at rksystems.com>:

The documentation for tempfile.mkstemp() says "If text is specified, it indicates whether to open the file in binary mode (the default) or text mode. On some platforms, this makes no difference." That might have been true for Python 2.x, but in Python 3, there are no platforms for which the choice whether to open a file in binary mode makes no difference.

----------
assignee: docs at python
components: Documentation
messages: 374385
nosy: bkline, docs at python
priority: normal
severity: normal
status: open
title: Opening a file in binary mode makes a difference on all platforms in Python 3
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41410>
_______________________________________


More information about the Python-bugs-list mailing list