in reply to Maintainable code is the best code Part II
Something to note is that unpack() is not always appropriate for handling character strings. pack() and unpack() deal with bytes. With the advent of Unicode (no, not everyone uses it yet) characters != bytes. Note that in the pack() documentation, 'A' indicates an ASCII string, which is guaranteed to be 1 byte per character.
|
---|