Skip to content

Conversation

@mbyrnepr2
Copy link
Contributor

@mbyrnepr2 mbyrnepr2 commented Jan 15, 2026

gh-79459: Sanitize the prefix and suffix parameters to the tempfile functions:

  • tempfile.mkdtemp.
  • tempfile.mkstemp.
  • tempfile.NamedTemporaryFile.

📚 Documentation preview 📚: https://cpython-previews--143889.org.readthedocs.build/

…the `tempfile` functions:

- `tempfile.mkdtemp`.
- `tempfile.mkstemp`.
- `tempfile.NamedTemporaryFile`.
@mbyrnepr2
Copy link
Contributor Author

In terms of the decisions made in the PR, I've tried to follow the suggestions mentioned in the issue from both Victor's comment and the comment of mjpieters.
The details around deprecation dates I've not spent too much time on because there will probably be feedback/ideas on that from others.

@mbyrnepr2 mbyrnepr2 marked this pull request as ready for review January 16, 2026 12:19
@mbyrnepr2 mbyrnepr2 requested a review from AA-Turner as a code owner January 16, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant