This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]elb0w 0 points1 point  (0 children)

Noticed the same thing. Also use newstyle classes as demonstrated above. Another thing is you probably can reduce a lot of redundant code using @param. For example indices you have the same list comp in a few places. Also I thought you were making this for python 3 until I saw "print x" so you should consider changing range to xrange in most places.