Message278249
| Author |
r.david.murray |
| Recipients |
eric.smith, r.david.murray, socketpair |
| Date |
2016年10月07日.15:44:20 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1475855060.2.0.379490801446.issue28385@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Bytes don't support formatting codes, so they are passed through to object, which doesn't support any formatting codes, and produces the error message you see. Since all other built in types reject invalid codes with a message that mentions their type, I think bytes should too. This would change the message to:
ValueError: Unknown format code 's' for object of type 'bytes'
Would that have lessened your confusion sufficiently? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年10月07日 15:44:20 | r.david.murray | set | recipients:
+ r.david.murray, eric.smith, socketpair |
| 2016年10月07日 15:44:20 | r.david.murray | set | messageid: <1475855060.2.0.379490801446.issue28385@psf.upfronthosting.co.za> |
| 2016年10月07日 15:44:20 | r.david.murray | link | issue28385 messages |
| 2016年10月07日 15:44:20 | r.david.murray | create |
|