FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-90102: Fix pyio return value by cmaloney · Pull Request #125089 · python/cpython · GitHub

/ cpython Public

gh-90102: Fix pyio return value - #125089

Merged
vstinner merged 1 commit into
python:mainfrom
cmaloney:cmaloney/gh90102-fixup
Oct 8, 2024
Merged

gh-90102: Fix pyio return value#125089
vstinner merged 1 commit into
python:mainfrom
cmaloney:cmaloney/gh90102-fixup

Conversation

cmaloney commented Oct 8, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Spotted by @ngnpope (https://github.com/python/cpython/pull/124922/files#r1791363776).

isatty returns False to indicate the file is not a TTY. The C implementation of _io does that (Py_RETURN_FALSE) but I got the bool backwards in the _pyio implementaiton.

cc: @vstinner

Spotted by @ngnpope.

`isatty` returns False to indicate the file is not a TTY. The C
implementation of _io does that (`Py_RETURN_FALSE`) but I got the
bool backwards in the _pyio implementaiton.

vstinner commented Oct 8, 2024

Copy link
Copy Markdown
Member

Oops, hopefully the bug was spotted quickly :-)

vstinner merged commit 43ad3b5 into python:main Oct 8, 2024
cmaloney deleted the cmaloney/gh90102-fixup branch October 8, 2024 16:16
efimov-mikhail pushed a commit to efimov-mikhail/cpython that referenced this pull request Oct 9, 2024
Spotted by @ngnpope.

`isatty` returns False to indicate the file is not a TTY. The C
implementation of _io does that (`Py_RETURN_FALSE`) but I got the
bool backwards in the _pyio implementaiton.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL