Search Results

Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: dezza
Forum: Python Jul 24th, 2009
Replies: 9
Views: 853
Posted By dezza
I have tried both open(filename, 'r') and open(filename, 'rb')

I can get the file loaded into a string and then try
print binascii.crc32(file-in-string)

Still just gives me negative integers,...
Forum: Python Jul 23rd, 2009
Replies: 9
Views: 853
Posted By dezza
I instead used a crc32.c script for use with subprocess .. Faster, and easier ..
Forum: Python Jul 18th, 2009
Replies: 9
Views: 853
Posted By dezza
http://dev.jmoiron.net/code/html/cksum.py.html

Can I use this code example to write a more simple approach?

I would prefer it in a single function, but the classes and etc. confuses me, I think...
Forum: Python Jul 8th, 2009
Replies: 9
Views: 853
Posted By dezza
Can you define this method? I am not sure I understand what you mean.
Forum: Python Jul 5th, 2009
Replies: 9
Views: 853
Posted By dezza
import binascii
def getCRC(filename):
filedata = open(filename).read()
return binascii.crc32(filedata)
Forum: Python Jul 4th, 2009
Replies: 9
Views: 853
Posted By dezza
So far i've got this and it returns something like:

-2087276233
import binascii
def getCRC(filename):
filedata = open(filename).read()
return binascii.crc32(filedata)

Someone told...
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC