This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, twouters
Date 2016-05-21.20:09:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463861399.98.0.689088484472.issue27079@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-05-21 20:10:00serhiy.storchakasetrecipients: + serhiy.storchaka, twouters
2016-05-21 20:09:59serhiy.storchakasetmessageid: <1463861399.98.0.689088484472.issue27079@psf.upfronthosting.co.za>
2016-05-21 20:09:59serhiy.storchakalinkissue27079 messages
2016-05-21 20:09:59serhiy.storchakacreate