Issue 25064: Adjust tempfile documentation for bytes filename support (original) (raw)

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.