On Sat, Aug 18, 2007 at 12:19:20PM +0200, Andre Poenitz wrote: > On Sat, Aug 18, 2007 at 03:37:22AM -0400, Richard Heck wrote: > > Martin Vermeer wrote: > > >On Sat, Aug 18, 2007 at 01:27:57AM -0400, Richard Heck wrote: > > > > > >> Martin Vermeer wrote: > > >> > > >>>Attached my attempt. I am a complete amateur with python > > >>>and work with layout2layout also for the first time, so... > > >>>does this make sense? FWIW it works. > > >>> > > >>> > > >> Well, I don't know anything about layout2layout, but I know a little > > >> python...
... > > >>>+ i = i + 1 > > >>> > > >>> > > >> You can do i += 1 in python, here and below. > > >> > > >If you say so... there are 11 more instances of this in the > > >file, not my doing ;-) > > > > > Yes, I promise. And in case you don't know, you can use python > > interactively. Just type "python" at a prompt, and then try: ... > We used to require only a pretty old version of python which did not > provide that '+='. > > I am not sure what the current policy is, though. I would surprise me if very old python versions would still work correctly for LyX. configure.ac seems to require 2.3, which definitely has +=. (But not i++, which would be even better) So, shall I replace all i = i + 1 by i += 1, and commit my layout2layout? Do any objections come to mind? - Martin