format discs.

Greg Ewing (using g2h5dqi002 at
Thu Jul 10 05:49:22 CEST 2003

Taka wrote:
> Yes, but since file partitions are usualy bigger than your physical RAM,
> you cannot do
> import string
> partition.write (string.zfill('0', partition.getsize('/dev/hda10')-1)

Given that, it would have been advisable to have used xrange instead
of range. :-)

All he needs then is a Python implementation of mkfs and he's done...

Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand

More information about the Python-list mailing list