format discs.
Greg Ewing (using news.cis.dfn.de)
g2h5dqi002 at sneakemail.com
Wed Jul 9 23:49:22 EDT 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
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list