Generating a string of NULL bytes

Thomas Gagne tgagne at ix.netcom.com
Wed Aug 9 07:14:13 EDT 2000


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.




More information about the Python-list mailing list