This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Adjust tempfile documentation for bytes filename support
Type: Stage: resolved
Components: Documentation Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, gregory.p.smith, martin.panter, python-dev
Priority: normal Keywords: patch

Created on 2015-09-11 03:46 by martin.panter, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tempfile-sig.patch martin.panter, 2015-09-11 03:46 review
Messages (2)
msg250440 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2015-09-11 03:46
This is a followup to Issue 24230, which added support for bytes filenames to “tempfile” module. Currently I think the documentation is misleading, for example it suggests the default values are prefix="tmp" and suffix="", when they are actually None to avoid forcing a text filename. I suggest this patch to fix the problem.

The patch also merges the paragraphs that describe “suffix” and “prefix”, and points out that mktemp() does not support these changes.
msg254247 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-11-07 01:00
New changeset de79e483565c by Martin Panter in branch '3.5':
Issue #25064: Adjust documentation according to new mkstemp signature
https://hg.python.org/cpython/rev/de79e483565c

New changeset c495c9dd7726 by Martin Panter in branch 'default':
Issue #25064: Merge tempfile doc from 3.5
https://hg.python.org/cpython/rev/c495c9dd7726
History
Date User Action Args
2022-04-11 14:58:20adminsetgithub: 69250
2015-11-07 01:30:30martin.pantersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2015-11-07 01:00:09python-devsetnosy: + python-dev
messages: + msg254247
2015-09-11 03:46:55martin.pantercreate