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 Arfrever, benjamin.peterson, docs@python, martin.panter, r.david.murray, rhettinger, serhiy.storchaka, vstinner, xiang.zhang, zbysz
Date 2017-04-29.03:07:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I don’t think the API should be expanded to accept arbitrary bytes-like objects as format strings. Struct formats are strings of ASCII-compatible characters, but not arbitrary chunks of memory.

I think the main question is whether it is okay to break compatibility (Victor’s pull request, or my format-str.patch), or whether there has to be a backwards-compatible deprecation of the existing bytes attribute. FWIW I am okay with breaking compatibility, since the main documentation already implies it should be a text string.
Date User Action Args
2017-04-29 03:07:47martin.pantersetrecipients: + martin.panter, rhettinger, vstinner, benjamin.peterson, Arfrever, r.david.murray, zbysz, docs@python, serhiy.storchaka, xiang.zhang
2017-04-29 03:07:47martin.pantersetmessageid: <>
2017-04-29 03:07:47martin.panterlinkissue21071 messages
2017-04-29 03:07:46martin.pantercreate