Skip to content

Conversation

@cmaloney
Copy link
Contributor

@cmaloneycmaloney commented Oct 8, 2024

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
Copy link
Member

Oops, hopefully the bug was spotted quickly :-)

@vstinnervstinner merged commit 43ad3b5 into python:mainOct 8, 2024
@cmaloneycmaloney 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.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@cmaloney@vstinner