« 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.

1 Comment

cute

Leave a comment

About this Entry

This page contains a single entry by sainttoad published on December 5, 2007 6:18 PM.

3k: heh was the previous entry in this blog.

python on snails is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.