[issue10571] "setup.py upload --sign" broken: TypeError: 'str' does not support the buffer interface

Matthias Klose report at bugs.python.org
Mon Nov 29 08:22:47 CET 2010

Matthias Klose <doko at debian.org> added the comment:

that seems to be the wrong report. did you mean

Package: python3.1
Version: 3.1.2+20101012-1
Severity: normal

curses.tigetstr() returns bytes (which makes sense), but curses.tparm() expects
a Unicode string as first argument. As a consequence even the example given in
the documentation doesn't work:

>>> from curses import *
>>> setupterm()
>>> tparm(tigetstr("cup"), 5, 3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: must be string, not bytes

assignee: tarek -> 
components: +Library (Lib) -Distutils
nosy: +doko

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list