Message285101
(S6) 'xxx' % b'foo' == 'xxx'
b'xxx' % b'foo' raises TypeError
The first case is because PyMapping_Check() is true on b'foo', so it works like 'xxx' % {...}, which always just returns 'xxx'. The second case is because _PyBytes_Format() contains more special cases, for bytes and bytearray, which are not present in PyUnicode_Format(). |
|
| Date |
User |
Action |
Args |
| 2017-01-10 09:16:10 | arigo | set | recipients:
+ arigo, brett.cannon, rhettinger, gregory.p.smith, vstinner, larry, serhiy.storchaka, yselivanov |
| 2017-01-10 09:16:10 | arigo | set | messageid: <[email protected]> |
| 2017-01-10 09:16:10 | arigo | link | issue28885 messages |
| 2017-01-10 09:16:10 | arigo | create | |
|