On Thu, Mar 13, 2003 at 12:39:34PM +0100, Lars Gullik Bj?nnes wrote: > Dekel Tsur <[EMAIL PROTECTED]> writes: > > | + if x < int(lst_ft[-1]) and x > int(lst_ft[-2]): > | + sys.stderr.write("lyx2lyx: A development version file.\n") > | + return lst_ft[-2] > > Okay... what does this indexing mean? > > indexes must be >= 0... are the converted to int? unsinged int?
A negative index -i in python means the i-th element from the end. So if the file version is in the interval (previous stable #, current dev #) we consider this file to be a development file, and decrease its version number to 'previous stable #'.