« 3k: heh | Home | python on snails »
December 5, 2007
holy cow
after 2-3 years of python fixing my brain, i had to write some c code to escape some characters in a string.
now this is 1 line in python :
s = s.replace("'", "'").replace(..etc..)
in C it's about 50 lines. maybe that's because i'm an awful C programmer or maybe that's because i've let too many pythonisms creep into my C. in any case, python rools, C drools.
cute