GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — bpo-29176 Use tmpfile() in curses module by tiran · Pull Request #235 · python/cpython Conversation
Member
The curses module used mkstemp() + fopen() to create a temporary file in tmpfile is supported on all platforms (C89, POSIX 2001, Android, https://bugs.python.org/issue29176 Signed-off-by: Christian Heimes [email protected]
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
vstinner
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, I missed your PR and wrote exactly the same :-)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the if can now be removed
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. = NULL can be removed Same remarks for the other function.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
tiran
force-pushed
the
bpo29176_curses_tmpfile
branch
2 times, most recently
from
7b11476 to
a16b7b5
Compare
vstinner
approved these changes
vstinner
requested changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
tiran
force-pushed
the
bpo29176_curses_tmpfile
branch
from
a16b7b5 to
22fdd41
Compare
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can be OSError.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
tiran
force-pushed
the
bpo29176_curses_tmpfile
branch
from
22fdd41 to
0e00de8
Compare
The curses module used mkstemp() + fopen() to create a temporary file in /tmp. The /tmp directory does not exist on Android. The tmpfile() function simplifies the task a lot. It creates a temporary file in a correct directory, takes care of cleanup and returns FILE*. tmpfile is supported on all platforms (C89, POSIX 2001, Android, Windows). Signed-off-by: Christian Heimes <[email protected]>
tiran
force-pushed
the
bpo29176_curses_tmpfile
branch
from
0e00de8 to
8353365
Compare
vstinner
approved these changes
yan12125
pushed a commit
to yan12125/python3-android
that referenced
this pull request
akruis
added a commit
to akruis/cpython
that referenced
this pull request
…#188 This commit fixes an assert statement, that could fail since python#188. No functional change. (cherry picked from commit 5595eec)
akruis
added a commit
to akruis/cpython
that referenced
this pull request
…#188 This commit fixes an assert statement, that could fail since python#188. No functional change.
jaraco
pushed a commit
that referenced
this pull request
Bumps [cherry-picker](https://github.com/python/core-workflow) from 1.2.2 to 1.3.2. - [Release notes](https://github.com/python/core-workflow/releases) - [Commits](python/core-workflow@cherry-picker-v1.2.2...cherry-picker-v1.3.2)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |