Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(library/tempfile): add a missing backtick#1009

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mattwang44 merged 1 commit intopython:3.13fromoToToT:tempfile-typo
Dec 20, 2024

Conversation

oToToT
Copy link
Contributor

If you check the content ofhttps://docs.python.org/zh-tw/3.13/library/tempfile.html#tempfile.NamedTemporaryFile

You'll see a weird "attr:!name`" inside

回傳的物件始終是一個類檔案物件,其 file 屬性是底層的真實檔案物件。這個類檔案物件可以在 with 陳述式中使用,就像普通檔案一樣。臨時檔案的名稱可以從回傳的類檔案物件的 :attr:!name` 屬性中取得。在 Unix 上則與 TemporaryFile() 不同,目錄條目不會在檔案建立後立即被取消鏈接 (unlink)。

This PR fixes the issue by adding a missing backtick after:attr:.

Copy link
Collaborator

@mattwang44mattwang44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you!

@mattwang44mattwang44 merged commitcc66b14 intopython:3.13Dec 20, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mattwang44mattwang44mattwang44 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@oToToT@mattwang44

[8]ページ先頭

©2009-2025 Movatter.jp