Re: struct.pack oddity

2007-03-13 Thread Steve Holden
Dave Opstad wrote: > In article <[EMAIL PROTECTED]>, > "Erik Johnson" <[EMAIL PROTECTED]> wrote: > >> Barring anyone else disagreeing with classifying it as a bug, I would >> suggest reporting it. Proper procedure for reporting a bug appears to be >> covered in section B of the Python Library

Re: struct.pack oddity

2007-03-13 Thread Dave Opstad
In article <[EMAIL PROTECTED]>, "Erik Johnson" <[EMAIL PROTECTED]> wrote: > Barring anyone else disagreeing with classifying it as a bug, I would > suggest reporting it. Proper procedure for reporting a bug appears to be > covered in section B of the Python Library Reference: > http://docs.py

Re: struct.pack oddity

2007-03-13 Thread Dave Opstad
In article <[EMAIL PROTECTED]>, Larry Bates <[EMAIL PROTECTED]> wrote: > 1) You can't put 10 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 con

Re: struct.pack oddity

2007-03-13 Thread Larry Bates
Erik Johnson wrote: > "Dave Opstad" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Is the lack of a struct.error when the byte-order mark is at the start >> of the format intentional? This seems like a bug to me, but maybe >> there's a subtlety here I'm not seeing. > > I am b

Re: struct.pack oddity

2007-03-13 Thread Erik Johnson
"Dave Opstad" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is the lack of a struct.error when the byte-order mark is at the start > of the format intentional? This seems like a bug to me, but maybe > there's a subtlety here I'm not seeing. I am by no means any sort of expert