Wolfgang Maier added the comment: are you looking for: struct.pack('i'*4, *[0]*4) ? ---------- nosy: +wolma _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue23933> _______________________________________