Re: comparison puzzle? bug?

2005-03-22 Thread Mike Rovner
Charles Hixson wrote: I hesitate to call this a bug, as at my level of expertise that seems ... unlikely. But I can't think of any other explanation: Call it 'typo' ;) print"item[0] > lvl = %d > %d = " %(item[0], lvl), bool(item[0] == lvl) use bool(item[0] > lvl) HTH, Mike -- http://mail.py

Re: comparison puzzle? bug?

2005-03-22 Thread Stephen Thorne
On Tue, 22 Mar 2005 16:32:47 -0800, Charles Hixson <[EMAIL PROTECTED]> wrote: > I hesitate to call this a bug, as at my level of expertise that seems > ... unlikely. But I can't think of any other explanation: > > This is an extract from some longer code: > print"item = ", item > print

comparison puzzle? bug?

2005-03-22 Thread Charles Hixson
I hesitate to call this a bug, as at my level of expertise that seems ... unlikely. But I can't think of any other explanation: This is an extract from some longer code: print"item = ", item print"item[0] < lvl = %d < %d = " %(item[0], lvl), bool(item[0] < lvl) print"item[0] == lv