Georg Brandl <ge...@python.org> added the comment:

It should only take bytes; "str" is Unicode in 3.x.

So the docs and the error message are wrong, the behavior is correct.  
Reclassifying as a docs issue.

----------
assignee:  -> docs@python
components: +Documentation -ctypes
nosy: +docs@python, georg.brandl

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13840>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to