Re: unsupported operand type(s) for -: 'unicode' and 'int'

2010-12-23 Thread Sam Lai
I'd say you should check if the pagesize variable is a string or not on this line - upperbound=self.pagesize * int(arg0) Remember in Python, 'hello' * 2 == 'hellohello'. On 24 December 2010 05:04, prasad iyer wrote: > Hi Everyone, > I am getting type error on integer. I

unsupported operand type(s) for -: 'unicode' and 'int'

2010-12-23 Thread prasad iyer
Hi Everyone, I am getting type error on integer. I have tried converting all the possible variables to int but still the problem persist. Can anyone help me out with this type error following is the stack trace http://dpaste.com/289886/ following are the 2 functions which are giving me the