New submission from Serhiy Storchaka: Most curses.ascii predicates corresponds C functions declared in <ctype.h>. But there are some differences:
1. isblank() returns True for space and backspace instead of space and tab. 2. ispunct() returns True for non-ASCII and control characters. 3. iscntrl() returns False for '\x7f'. Note that there is different function isctrl(). These differences look as bugs. Proposed patch fixes them and adds tests for all curses.ascii functions. ---------- components: Library (Lib) files: curses_ascii.patch keywords: patch messages: 266020 nosy: serhiy.storchaka, twouters priority: normal severity: normal stage: patch review status: open title: Bugs in curses.ascii predicates type: behavior versions: Python 2.7, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file42931/curses_ascii.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27079> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com