Unix fold command in python

Ivan Voras iv at an.voras.fer.hr
Mon Jun 14 13:19:40 CEST 2004


dean wrote:

> Hello Group:
> 
> Hopefully someone can answer my question. 
> 
> I have a unix shell command that I would like to emulate in python.
> The command is FOLD. I am scanning a file that contains a stream of
> data with a record size of 242 bytes but no record delimiters. There

Have you looked at the 'struct' module?



More information about the Python-list mailing list