Hello
I find the following inconsistent:
===
'2.4.1a0 (#2, Feb 9 2005, 12:50:04) \n[GCC 3.3.5 (Debian 1:3.3.5-8)]'
'\x00'
'\x00'
Traceback (most recent call last):
File "<stdin>", line 1, in ?
struct.error: ubyte format requires 0<=number<=255
===
I was hoping that '>B' and '<B' would raise an exception,
ust as 'B' does.
On Oct 27 2006, 11:17 am, Jansson Christer reported a
different anomoly to this newsgroup, using the same
subject.
--
Jonathan
I find the following inconsistent:
===
>>sys.version
>>pack('>B', 256)
>>pack('<B', 256)
>>pack('B', 256)
File "<stdin>", line 1, in ?
struct.error: ubyte format requires 0<=number<=255
>>>
I was hoping that '>B' and '<B' would raise an exception,
ust as 'B' does.
On Oct 27 2006, 11:17 am, Jansson Christer reported a
different anomoly to this newsgroup, using the same
subject.
--
Jonathan
Comment