Skip to content

Error in example of tempfile module #111282

New issue

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

Closed
kkarbowiak opened this issue Oct 24, 2023 · 4 comments
Closed

Error in example of tempfile module #111282

kkarbowiak opened this issue Oct 24, 2023 · 4 comments
Labels
3.12 only security fixes 3.13 bugs and security fixes docs Documentation in the Doc dir

Comments

@kkarbowiak
Copy link
Contributor

kkarbowiak commented Oct 24, 2023

Documentation

The third example in Examples section of tempfile module shows creating TemporaryFile with delete_on_close parameter, however the parameter is present only in NamedTemporaryFile class. Also, a colon is missing several lines below.

The Examples in 3.12 version is the same, so both 3.13 and 3.12 versions are affected.

Linked PRs

@kkarbowiak kkarbowiak added the docs Documentation in the Doc dir label Oct 24, 2023
@Eclips4 Eclips4 added 3.12 only security fixes 3.13 bugs and security fixes labels Oct 24, 2023
@DavidCoy77
Copy link

Hello, I'm an undergraduate computer science student and I'm eager to make a first contribution to GitHub. Would you be willing to offer some guidance to help me through this issue? Thanks!

@kkarbowiak
Copy link
Contributor Author

Hello, I'm an undergraduate computer science student and I'm eager to make a first contribution to GitHub. Would you be willing to offer some guidance to help me through this issue? Thanks!

Hello @DavidCoy77. It's cool you are eager to contribute, however there is already a PR with fix for this issue.

@DavidCoy77
Copy link

Oops! Sorry, that's my fault for not noticing.

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 31, 2023
(cherry picked from commit 102685c)

Co-authored-by: Krzysiek Karbowiak <[email protected]>
zware pushed a commit that referenced this issue Oct 31, 2023
@zware
Copy link
Member

zware commented Oct 31, 2023

Thanks for the report and patch, @kkarbowiak!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 only security fixes 3.13 bugs and security fixes docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

4 participants