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

Martin Panter report at bugs.python.org
Sat Mar 25 17:21:35 EDT 2017


Martin Panter added the comment:

A backwards-compatible way forward would be to preserve (and document) the “format” attribute as a byte string, and add a new attribute which is definitely a text string. Not sure of a good name; perhaps “Struct.text_format” or “format_str” is a start.

----------

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


More information about the docs mailing list