[docs] [issue21071] struct.Struct.format is bytes, but should be str

Martin Panter report at bugs.python.org
Thu Dec 18 06:25:00 CET 2014


Martin Panter added the comment:

Here is a patch that changes over to a str() type.

Is it safe to assume PyUnicode_AsUTF8() is null-terminated (like PyBytes_AS_STRING() is)? My documentation doesn’t say.

----------
Added file: http://bugs.python.org/file37488/format-str.patch

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


More information about the docs mailing list