Re: Error in Chain of Function calls (Code Attached)

2006-06-10 Thread Fredrik Lundh
Girish Sahani wrote: Thanks for the help borisi'll try using sets instead of lists But i dont understand the point below...full traceback means what :-? see: http://tinyurl.com/qwpsf /F -- http://mail.python.org/mailman/listinfo/python-list

Error in Chain of Function calls

2006-06-09 Thread Girish Sahani
Hi, There is a code in my main function which is something like: while prunedFinal != []: prunedNew = genColocations(prunedK) *** tableInstancesNew = genTableInstances(prunedNew,tableInstancesK) tiCountDict = tiCount(tableInstancesNew)

Re: Error in Chain of Function calls

2006-06-09 Thread Fredrik Lundh
Girish Sahani wrote: However i am getting an error at the line marked with ***. what error ? Also,i am getting a ValueError in the code below: for s in prunedNew: substrings = [s[:i]+s[i+1:] for i in range(len(s))] for string in substrings:

Re: Error in Chain of Function calls

2006-06-09 Thread bruno at modulix
Girish Sahani wrote: Hi, There is a code in my main function which is something like: while prunedFinal != []: prunedNew = genColocations(prunedK) *** tableInstancesNew = genTableInstances(prunedNew,tableInstancesK) tiCountDict =

Re: Error in Chain of Function calls

2006-06-09 Thread Girish Sahani
Girish Sahani wrote: However i am getting an error at the line marked with ***. what error ? ...line 266, in colocationMiner prunedNew = genColocations(prunedK) genColocations is a function defined before which returns prunedNew. Also,i am getting a ValueError in the code below:

Re: Error in Chain of Function calls

2006-06-09 Thread Fredrik Lundh
Girish Sahani wrote: what error ? ...line 266, in colocationMiner prunedNew = genColocations(prunedK) genColocations is a function defined before which returns prunedNew. that's a line of code, not an error. please include the entire traceback, or at least the actual error message. also

Re: Error in Chain of Function calls

2006-06-09 Thread Boris Borcic
Girish Sahani wrote: Also,i am getting a ValueError in the code below: for s in prunedNew: substrings = [s[:i]+s[i+1:] for i in range(len(s))] for string in substrings: if string not in prunedK:

Re: Error in Chain of Function calls

2006-06-09 Thread bruno at modulix
Girish Sahani wrote: Girish Sahani wrote: However i am getting an error at the line marked with ***. what error ? ...line 266, in colocationMiner Great. We now know at which line of an unknown file an unknown error happens. Will use my PythonPsychicPowers(tm) now to see waht's there...

Re: Error in Chain of Function calls (Code Attached)

2006-06-09 Thread Girish Sahani
Girish Sahani wrote: Hi, There is a code in my main function which is something like: while prunedFinal != []: prunedNew = genColocations(prunedK) *** tableInstancesNew = genTableInstances(prunedNew,tableInstancesK) tiCountDict =

Re: Error in Chain of Function calls (Code Attached)

2006-06-09 Thread Boris Borcic
Girish Sahani wrote: However i am getting an error at the line marked with ***. Which error ? How do you hope us to be of any help here if you don't *at least* provide the full traceback ? FWIW, the canonical way to do things is to: - provide minimal *runnable* code exposing the problem -

Re: Error in Chain of Function calls (Code Attached)

2006-06-09 Thread bruno at modulix
Girish Sahani wrote: Girish Sahani wrote: (snip) Before the main function, i have defined the other functions such as genColocations,genTableInstances,etc. Output of genColocations is to be given to the next function genTableInstances,output of this function to tiCount and findPI, and so on.

Re: Error in Chain of Function calls (Code Attached)

2006-06-09 Thread Fredrik Lundh
Girish Sahani wrote: Ohh...I was thinking that posting the whole code would not be a good idea. The error i get above is: line 266, in colocationMiner prunedNew = genColocations(prunedK) that's a line of code, not an error. please include the entire traceback, or at least the actual error

Re: Error in Chain of Function calls (Code Attached)

2006-06-09 Thread Girish Sahani
Thanks for the help borisi'll try using sets instead of lists But i dont understand the point below...full traceback means what :-? Girish Sahani wrote: However i am getting an error at the line marked with ***. Which error ? How do you hope us to be of any help here if you don't *at