struct.pack oddity

Dave Opstad dave.opstad at monotypeimaging.com
Tue Mar 13 16:14:22 EDT 2007


In article <P6edncuAzZrYemvYnZ2dnUVZ_qLinZ2d at comcast.com>,
 Larry Bates <lbates at websafe.com> wrote:

> 1) You can't put 100000 into a half-word.  The limit is 2**16
> or 65535. On Python 2.5 I get:

Yes, I know. I used that example to illustrate the problem. If a value 
does not fit a format then Python should report that consistently, 
independent of whether a byte-order indication is explicit or implicit.

Dave



More information about the Python-list mailing list