This movie had no memorable quotes...

Jul 22, 2009 09:25

Watched Teen Wolf last night for the first time since I was about ten. It's pretty awful, just like I remembered, and sadly utterly unquotable. This is, however, a great movie for watching tipsy on schnapps! (... which I did not try at age ten!)

I spent much of the night trying to sort out the ambiguity of Lewis, which this review finally ( Read more... )

Leave a comment

Comments 5

ultranurd July 22 2009, 13:54:38 UTC
There is a very simple correction to all of your code problems:

#!/usr/bin/env python
import re
teenwolf_f = open("teenwolf.txt", "rb")
teenwolftoo_f = open("teenwolftoo.txt", "wb")
for line in teenwolf_f.xreadlines():
line = line.replace("Michael J. Fox", "Jason Bateman")
sport_re = re.compile("basketball", re.I)
line = sport_re.sub("boxing", line)
teenwolftoo_f.write(line)
print "Sequel created!"

Reply

ultranurd July 22 2009, 13:55:04 UTC
Curse you, LJ, for eating my tabs!

Reply

mst3kforall July 22 2009, 22:05:29 UTC
Yeah, I think on LJ you'd have to use a bunch of  s and perform the "tabbing" yourself (e.g. filling in the appropriate number of spaces to simulate the tab)

Reply

ultranurd July 22 2009, 22:17:12 UTC
I in fact use 4 literal spaces to represent one tab column in most source code (including Python). To me tab is more "a key I press to jump to/toggle through available indent levels" than a literal character I insert (except when dealing with tab-delimited columns).

Reply


Leave a comment

Up