Re: reading files in small chunks?

2006-04-14 Thread Rajesh Sathyamoorthy
Hi,What chunk sizes do you normally use in your code?Thank You.On 4/14/06, Amit Khemka <[EMAIL PROTECTED] > wrote:On 4/14/06, Rajesh Sathyamoorthy < [EMAIL PROTECTED]> wrote:> Hi,>> I wanted to know why it is more efficient to read a file in smaller chunks (> using file()

Re: reading files in small chunks?

2006-04-14 Thread Rajesh Sathyamoorthy
Hi,Could I have some links? It would be very helpful.Thank You.On 4/14/06, Felipe Almeida Lessa wrote: Em Sex, 2006-04-14 às 13:45 +0800, Rajesh Sathyamoorthy escreveu:> I wanted to know why it is more efficient to read a file in smaller> chunks ( using file() or open() )?It's more e

reading files in small chunks?

2006-04-13 Thread Rajesh Sathyamoorthy
Hi,I wanted to know why it is more efficient to read a file in smaller chunks ( using file() or open() )? If this is not done, will this lead to errors in the data read or just results in slower performance? Thank You. -- http://mail.python.org/mailman/listinfo/python-list

zipfile module

2006-03-29 Thread Rajesh Sathyamoorthy
Hi,I know how to write files to a zip file but i was wondering if there was a way to add a empty folder to the zip file using the zipfile module? I can only write files and not directories to a zip file.Thank You. -- http://mail.python.org/mailman/listinfo/python-list

Re: Calculating md5 checksums.

2006-03-03 Thread Rajesh Sathyamoorthy
I tried the script and had to get a hexdigest to get the value providedMy test:SimplyMEPIS-3.3.1-1.iso checksum: 41a19060d3bb37bd596708ba77964491i got: 41a19060d3bb37bd596708ba77964491Do people normally provide md5 checksum in a hexadecimal string?Besides that, is the script reliable? Replies:Rajes

Calculating md5 checksums.

2006-03-03 Thread Rajesh Sathyamoorthy
Hi,How do you calculate the md5 checksum of a file?so far  i got this,import md5obj = md5.new()file = open( 'filename',  'rb') data = "">obj.update(data)checksum = md5.digest ()Is this correct? Is there anything else i should do before comparing the checksum with the one provided for the file?Thank

minimize a program into an icon on the taskbar.

2006-02-27 Thread Rajesh Sathyamoorthy
Hi, I would know how to minimize a program (wxpython app) into an icon on the taskbar on windows (the one at the side near the clock, i can't remember what is it called.) Is it easy to be done? Is there a way to do the same thing on Linux? Thank You. -- http://mail.python.org/mailman/