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

bpo-29176: curses: use tmpfile() for getwin/putwin#237

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

Closed
vstinner wants to merge1 commit intopython:masterfromvstinner:curses_tmpfile
Closed

bpo-29176: curses: use tmpfile() for getwin/putwin#237

vstinner wants to merge1 commit intopython:masterfromvstinner:curses_tmpfile

Conversation

vstinner
Copy link
Member

Use C function tmpfile() for curses.getwin() and curses.putwin(),
instead of mkstemp() using an hardcoded /tmp path. The tmpfile()
chooses the directory for the temporary file and so is more portable
(especially, it works on Android).

Replace also IOError with OSError: since the PEP 3151, IOError is an
alias to OSError.

http://bugs.python.org/issue29176

Use C function tmpfile() for curses.getwin() and curses.putwin(),instead of mkstemp() using an hardcoded /tmp path. The tmpfile()chooses the directory for the temporary file and so is more portable(especially, it works on Android).Replace also IOError with OSError: since the PEP 3151, IOError is analias to OSError.
@vstinner
Copy link
MemberAuthor

Oh, Christian Heimes (@tiran) created the same PR than me: PR#235 ! So I abandon mine.

@vstinnervstinner deleted the curses_tmpfile branchFebruary 22, 2017 11:26
akruis pushed a commit to akruis/cpython that referenced this pull requestApr 20, 2021
The 4th argument has been changed from immediate=True to pending=Falsea long time ago.
akruis pushed a commit to akruis/cpython that referenced this pull requestMay 27, 2021
The 4th argument has been changed from immediate=True to pending=Falsea long time ago.(cherry picked from commit12b78b0)
ahgamut pushed a commit to ahgamut/cpython that referenced this pull requestAug 25, 2021
The 4th argument has been changed from immediate=True to pending=Falsea long time ago.(cherry picked from commit12b78b0)
jaraco pushed a commit that referenced this pull requestDec 2, 2022
If celery or redis is down, then we can't perform "sleep".Heroku's web dyno times out after 30 seconds. 😥
jaraco added a commit to jaraco/cpython that referenced this pull requestFeb 17, 2023
…ersable-docsabc: avoid abbreviations in the Traversable documentation
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@serhiy-storchakaserhiy-storchakaserhiy-storchaka approved these changes

@tirantiranAwaiting requested review from tiran

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

Successfully merging this pull request may close these issues.

3 participants
@vstinner@serhiy-storchaka@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp