Skip to content

Error in example of tempfile module #111282

Closed

Description

@kkarbowiak

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

Activity

  1. added
    3.12only security fixes
    3.13only security fixes
    on Oct 24, 2023
  2. DavidCoy77 commented on Oct 25, 2023

    @DavidCoy77

    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!

  3. kkarbowiak commented on Oct 25, 2023

    @kkarbowiak
    ContributorAuthor

    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.

  4. DavidCoy77 commented on Oct 25, 2023

    @DavidCoy77

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

  5. added a commit that references this issue on Oct 31, 2023
  6. added a commit that references this issue on Oct 31, 2023
  7. added a commit that references this issue on Oct 31, 2023
  8. zware commented on Oct 31, 2023

    @zware
    Member

    Thanks for the report and patch, @kkarbowiak!

  9. added a commit that references this issue on Nov 3, 2023
  10. added a commit that references this issue on Feb 11, 2024
  11. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13only security fixesdocsDocumentation in the Doc dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions