[issue21071] struct.Struct.format is bytes, but should be str
Dec. 16, 2014
10:57 p.m.
Martin Panter added the comment: It seems to me that the simplest fix is to document: 1. Struct.format attribute is a byte string 2. The input format strings for struct.pack(), Struct class, etc, are also allowed to be byte strings, for consistency (Issue 16349) Here is a patch that does that, and adds some simple test cases. ---------- keywords: +patch Added file: http://bugs.python.org/file37474/format-bytes.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue21071> _______________________________________
4351
Age (days ago)
4351
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martin Panter