Forum: Python Jul 24th, 2009 |
| Replies: 9 Views: 853 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 I instead used a crc32.c script for use with subprocess .. Faster, and easier .. |
Forum: Python Jul 18th, 2009 |
| Replies: 9 Views: 853 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 Can you define this method? I am not sure I understand what you mean. |
Forum: Python Jul 5th, 2009 |
| Replies: 9 Views: 853 import binascii
def getCRC(filename):
filedata = open(filename).read()
return binascii.crc32(filedata) |
Forum: Python Jul 4th, 2009 |
| Replies: 9 Views: 853 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... |