sorry for this stupid question about struct module

Alan Marchand malan at club-internet.fr
Thu Sep 19 18:09:53 EDT 2002


Hi all,

I tryed this :

e:\temp>python.exe
Python 2.2.1 ( #34, Apr 9 2002, ...................)
...........
>>> import struct
>>> x = struct.pack( '>I', 10 )
>>> print repr( x )
'\x00\x00\x00\n'                       # why not !

How can I obtain the result a expect : '\x00\x00\x00\0A' ?

Remark :
This, to send a message to a IBM Mainframe in order to start an IMS
transaction ( via IMS CONNECT ).






More information about the Python-list mailing list