[New-bugs-announce] [issue27079] Bugs in curses.ascii predicates

Serhiy Storchaka report at bugs.python.org
Sat May 21 16:09:59 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue27079>
_______________________________________


More information about the New-bugs-announce mailing list