Author akira
Recipients akira, serhiy.storchaka, twouters
Date 2016-06-30.08:08:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467274124.07.0.887072843033.issue27079@psf.upfronthosting.co.za>
In-reply-to
Content
There is an overlapping issue from 2010: "curses.ascii.isblank() function is broken. It confuses backspace (BS 0x08) with tab (0x09)" http://bugs.python.org/issue9770 

Your patch fixes it too (it should be closed). Note: the patch does not pass tests from Lib/test/test_curses_ascii.py attached to issue9770 (even if the code: `if char_class_name in ('cntrl', 'punct') test = unittest.expectedFailure(test)` is removed) e.g., iscntrl(-1) should be False but it returns True:

  $ ./python
  >>> import curses.ascii
  >>> curses.ascii.iscntrl(-1) #XXX expected False
  True

If we ignore negative ints then isblank, ispunct, iscntrl provided in the curses_ascii.patch are ok.
History
Date User Action Args
2016-06-30 08:08:44akirasetrecipients: + akira, twouters, serhiy.storchaka
2016-06-30 08:08:44akirasetmessageid: <1467274124.07.0.887072843033.issue27079@psf.upfronthosting.co.za>
2016-06-30 08:08:44akiralinkissue27079 messages
2016-06-30 08:08:43akiracreate