Prev: python interview quuestions
Next: HL7 v3 (XML) importer
From: James Mills on 6 Aug 2010 14:30 Hey all, Quick question for you Python enthusiasts that also happen to know Perl quite well... What does a* or A* translate to in Python when unpacking binary data with struct.unpack(...) ? cheers James -- -- James Mills -- -- "Problems are solved by method"
From: James Mills on 7 Aug 2010 02:43 On Sat, Aug 7, 2010 at 4:30 AM, James Mills <prologic(a)shortcircuit.net.au> wrote: > What does a* or A* translate to in Python when unpacking > binary data with struct.unpack(...) ? Fine I"ll answer my own question. Python _does not_ support implicit size in struct formatting rules. sizes are explicit meaning that you must "compute" the size you require. a* or A* would translate to 10s for example where you want a string with a size of 10. cheers James -- -- James Mills -- -- "Problems are solved by method"
From: Thomas Jollans on 8 Aug 2010 18:27 On Friday 06 August 2010, it occurred to James Mills to exclaim: > Quick question for you Python enthusiasts that also > happen to know Perl quite well... Few and far between ...
|
Pages: 1 Prev: python interview quuestions Next: HL7 v3 (XML) importer |