This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients benjamin.peterson, docs@python, martin.panter, r.david.murray, zbysz
Date 2014-12-16.22:57:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418770636.35.0.11657145904.issue21071@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-12-16 22:57:16martin.pantersetrecipients: + martin.panter, benjamin.peterson, r.david.murray, zbysz, docs@python
2014-12-16 22:57:16martin.pantersetmessageid: <1418770636.35.0.11657145904.issue21071@psf.upfronthosting.co.za>
2014-12-16 22:57:16martin.panterlinkissue21071 messages
2014-12-16 22:57:16martin.pantercreate