Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

oToToT
Copy link
Contributor

@oToToT oToToT commented Dec 20, 2024

If you check the content of https://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

@mattwang44 mattwang44 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!

@mattwang44 mattwang44 merged commit cc66b14 into python:3.13 Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants