It's a trivial change indeed. I'm happy to change it to a traditional if/else, and then we can have the 2.5 discussion independent of this modification.
Andreas -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of nathan binkert Sent: 21 March 2012 16:20 To: gem5 Developer List Subject: Re: [gem5-dev] Python version 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 -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
