[issue9770] curses.isblank function doesn't match ctype.h

Kevin Thibedeau report at bugs.python.org
Sat Sep 4 02:01:49 CEST 2010


New submission from Kevin Thibedeau <kevinpt at yahoo.com>:

The isblank() function defined in curses.ascii is incorrect and doesn't match the output from C's isblank() from ctype.h

Incorrect definition:
  def isblank(c): return _ctoi(c) in (8,32)

Should be:
  def isblank(c): return _ctoi(c) in (9,32)

This most likely affects all versions of Python, not just 2.7.

----------
components: Library (Lib)
messages: 115544
nosy: kevinpt
priority: normal
severity: normal
status: open
title: curses.isblank function doesn't match ctype.h
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9770>
_______________________________________


More information about the Python-bugs-list mailing list