Martin Panter added the comment: I think the direction to take for this depends on the outcome of Issue 21071. First we have to decide if the “format” attribute is blessed as a byte string (and not deprecated), or whether it is deprecated or changed to a text string.
Serhiy pointed out that it is not entirely “safe” because mixing equivalent byte and text formats can generate ByteWarning. ---------- dependencies: +Document whether it's safe to use bytes for struct format string _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16349> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com