[issue19985] Not so correct error message when initializing Struct with ill argument

Serhiy Storchaka report at bugs.python.org
Sun Dec 15 14:40:25 CET 2013


Serhiy Storchaka added the comment:

I think that error message in 2.7 is correct. "String" means both str and unicode.

As for 3.x, agree, it should be corrected. But I prefer "str or bytes" or "string or bytes object".

----------
nosy: +serhiy.storchaka
versions:  -Python 2.7

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


More information about the Python-bugs-list mailing list