Thanks. I got some other neat suggestions offline - '\000' * 42, and struct.pack('42x'). As it turns out, since I was in the middle of doing a bunch of strct.pack() operations the latter proved to fit right in.