[issue27008] error message of ord is not intuitive

Xiang Zhang report at bugs.python.org
Thu May 12 04:04:50 EDT 2016


New submission from Xiang Zhang:

The error message of ``ord`` is not that right. It says 'ord() expected string of length 1'. I don't think in Py3.x string can refer to both bytes and unicodes.

----------
messages: 265376
nosy: xiang.zhang
priority: normal
severity: normal
status: open
title: error message of ord is not intuitive
versions: Python 3.6

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


More information about the Python-bugs-list mailing list