gh at ghaering.de
Wed Jul 9 15:00:33 CEST 2003
> On Wed, 09 Jul 2003 06:26:38 +0000, Flanagan wrote:
>>hello to all
>>somebody can say to me whereupon I modulate of python I can format
> Let's presume you want to format a unix partition and that it is
> The do this:
> import os
> partition = open ('/dev/hda1', 'w')
> for x in range(os.path.getsize('/dev/hda1'):
> partition.write ('0')
Didn't you mean ;-) instead of :) ?
Your approach is hard to beat in inefficiency.
More information about the Python-list