Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

md5 shit in python

Name: Anonymous 2009-01-20 23:22

import os, md5;

for root, dirs, files in os.walk(os.path.abspath('')):
    for f in files:
        e = os.path.splitext(f)[1]
        if (e and e not in [".py",".db"]):
            h = md5.new(file(f,'rb').read()).hexdigest()
            n = h + e
            try:
                os.rename(f,n)
            except WindowsError:
                os.unlink(n)
                os.rename(f,n)
            print n + " " + f


How do I optimize this, I'm watching SICP right now

Name: Anonymous 2009-03-06 6:49

' a function or   procedure The shot   has float s   on the second   I knew older   architectures had 9   or 18 bit   columns in memory   and such wasting!

Name: Anonymous 2009-03-06 6:49

NECRO POSTING IS FAGGOTS

Name: 4CHAN IS 4 CHINKS 2010-07-28 15:42

FUCK ALL YOU CHINKS

Name: Anonymous 2010-07-28 17:13

prog/1232511435: The story of how one mere >>15 managed to derail an entire thread for two-thirds of its duration.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List