Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset b4d9243d16c9 by Ezio Melotti in branch '3.2':
#13665: s/string/bytes/ in error message.
http://hg.python.org/cpython/rev/b4d9243d16c9
New changeset 0c0ffebfccb0 by Ezio Melotti in branch 'default':
#13665: merge
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: - ezio.melotti
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13665
Meador Inge mead...@gmail.com added the comment:
LGTM. Thanks for fixing this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13665
___
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Here's a patch.
I found a similar instance that says unicode string or integer address
expected instead of %s instance, but it's inside an if
(!PyUnicode_Check(value)) {} so it should be ok (unicode string could be
replaced to 'str'
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13665
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +amaury.forgeotdarc, meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13665
___
___
New submission from Jason R. Coombs jar...@jaraco.com:
When constructing a ctypes.c_char_p with a unicode string, a confusing error
message is reported:
python -c import ctypes; ctypes.c_char_p('foo')
Traceback (most recent call last):
File string, line 1, in module
TypeError: string or