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
curses.ascii.isblank() function is broken. It confuses backspace (BS 0x08) with tab (0x09) #53979
Comments
The isblank() function defined in curses.ascii is incorrect and doesn't match the output from C's isblank() from ctype.h Incorrect definition: Should be: This most likely affects all versions of Python, not just 2.7. |
The problem and fix are simple but who is best placed to take a look at this? |
I've fixed isblank to accept tab instead of backspace and added tests Open questions:
|
I've made the title more explicit: "curses.isblank function doesn't match If a core developer could review the open questions from the |
Most issues was fixed in bpo-27079. Except handling negative integers. Following patch fixes the latter issue. |
New changeset cba619a7bf6a by Serhiy Storchaka in branch '3.5': New changeset 84ca252ac346 by Serhiy Storchaka in branch '2.7': New changeset eb81f2d2a42b by Serhiy Storchaka in branch '3.6': New changeset 1c0b72996e60 by Serhiy Storchaka in branch 'default': |
Misc/NEWS
so that it is managed by towncrier #552Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: