Message142074
| Author |
pitrou |
| Recipients |
georg.brandl, mark.dickinson, meador.inge, pitrou, r.david.murray, rhettinger, skrah |
| Date |
2011年08月14日.18:17:32 |
| SpamBayes Score |
6.616389e-05 |
| Marked as misclassified |
No |
| Message-id |
<1313345728.3574.17.camel@localhost.localdomain> |
| In-reply-to |
<1313345036.11.0.789905045333.issue12740@psf.upfronthosting.co.za> |
| Content |
> It looks like the choice is between s.nmembers and len(s). I thought
> about len(s), but since Struct.pack() returns a bytes object, this
> might be confusing.
I agree there's a risk of confusion between len()-number-of-elements and
size()-number-of-bytes.
We have a similar confusion with the memoryview object and in retrospect
it's often quite misleading. |
|