Message174584
| Author | terry.reedy |
|---|---|
| Recipients | mark.dickinson, martin.panter, meador.inge, takluyver, terry.reedy |
| Date | 2012-11-02.21:28:35 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1351891715.9.0.138388215204.issue16349@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
For 3.3, I verified that adding b prefix to first three doc examples gives same output as without, but also discovered that example outputs are wrong, at least on windows, because of byte ordering issues.
>>> pack('hhl', 1, 2, 3)
b'\x01\x00\x02\x00\x03\x00\x00\x00'
>>> pack(b'hhl', 1, 2, 3)
b'\x01\x00\x02\x00\x03\x00\x00\x00'
>>> unpack(b'hhl', b'\x00\x01\x00\x02\x00\x00\x00\x03')
(256, 512, 50331648)
>>> unpack('hhl', b'\x00\x01\x00\x02\x00\x00\x00\x03')
(256, 512, 50331648) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2012-11-02 21:28:35 | terry.reedy | set | recipients: + terry.reedy, mark.dickinson, meador.inge, takluyver, martin.panter |
| 2012-11-02 21:28:35 | terry.reedy | set | messageid: <1351891715.9.0.138388215204.issue16349@psf.upfronthosting.co.za> |
| 2012-11-02 21:28:35 | terry.reedy | link | issue16349 messages |
| 2012-11-02 21:28:35 | terry.reedy | create | |