I have a weird problem with python passing a list as parameter to a function. Here is the code:
def foobar(depth, top, bottom, n=len(listTop)): print dir
top.append(listTop[i]) works in place and returns None
top.append(listTop[i])
None