one thing I notice immediately that will get you in trouble:
never name a list list.
that overwrites python's list
example:
never name a list list.
that overwrites python's list
example:
>>> z = ('a','b','c') >>> # following is legal >>> zz = list(z) >>> zz ['a', 'b', 'c'] >>> # following is taboo >>> list = [1,2,3] >>> z = ('a','b','c') >>> zz = list(z) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'list' object is not callable >>>