-
-
Notifications
You must be signed in to change notification settings - Fork 32k
termios.tpsetattr
does rewrite errors
#110365
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
Labels
Comments
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Oct 4, 2023
erlend-aasland
added a commit
that referenced
this issue
Oct 5, 2023
Co-authored-by: Erlend E. Aasland <erlend@python.org>
This was referenced Oct 5, 2023
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
…10366) Co-authored-by: Erlend E. Aasland <erlend@python.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
This code is problematic:
cpython/Modules/termios.c
Lines 215 to 224 in bf4bc36
It does rewrite errors that happened before. Showing the last error, not the first one.
This goes against Python's semantics.
Here's the reproducer:
The second error should say:
And while we are there we can also change
PyList_GetItem
toPyList_GET_ITEM
, because:term
is known to be alist
term
is known to be 7See check
cpython/Modules/termios.c
Lines 197 to 201 in bf4bc36
The only problem is tests. I think that
termios
is not tested that much in our suite. We don't even havetest_termios.py
file. Should I add one?Refs #110260
Linked PRs
termios.tcsetattr
#110366termios.tcsetattr
(GH-110366) #110389termios.tcsetattr
(GH-110366) #110390The text was updated successfully, but these errors were encountered: