DanielleSucher/Nantucket — pull request #3 by ajtulloch (2012-04-04 09:28:05+00:00)
Title: Minor commits, making code a little more Pythonic.

Very minor stuff, just cleaned up some of the file handling, empty branches, and set initialisation.

Just a thought, but some of the code loops like this one:
i = -1
while i >= 0 - len(list1):
# do stuff with elements of list1
i -= 1

don't look very Pythonic, and might be able to be cleaned up. One way might be to use the `reversed` and `enumerate` functions [docs](http://docs.python.org/tutorial/datastructures.html#looping-techniques) e.g.:

for i, elem in enumerate(reversed("cats")):
print i, elem

outputs

0 s
1 t
2 a
3 c

Anyway cool project!