I have no problem going to 2.5 if that is the consensus and desire (so we can get things like the with statement and context managers, -m for executing gem5 as a module, and relative imports), that said, this change is super trivial and isn't a good reason to move.
By the way, "x if y else z" can be done in older versions of python as "y and x or z". That said, I'm not much of a fan of either really. Nate > I would be for making 2.5 the minimum version. > > All supported > versions of Ubuntu have python >=2.5 as does the last two revisions of > OS X. RHEL 6 and newer also have python 2.5. While RHEL 5 has 2.4 and is > probably still widely in use, it also has gcc 4.1.2 which we don't > support, so that probably isn't an argument for staying with 2.4. > > Ali > > > On 21.03.2012 09:50, Nilay Vaish wrote: > >> Changeset 7d74a97c525f > uses python syntax that was made available from >> version 2.5 onwards. > Should we re-write this changeset, or should we move >> the minimum > version of python required to 2.5 and upwards? >> >> -- >> Nilay >> > _______________________________________________ >> gem5-dev mailing > list >> [email protected] >> http://m5sim.org/mailman/listinfo/gem5-dev > > > _______________________________________________ > gem5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
