[Sugar-devel] Bump Python dependency from 2.5 to 2.6

Lucian Branescu lucian.branescu at gmail.com
Wed Aug 25 10:27:50 EDT 2010


On 25 August 2010 15:23, Simon Schampijer <simon at schampijer.de> wrote:
> Hi,
>
> raised during the review of [1] some code was relying on Python 2.6
> (with open(COUNTRY_CODES_PATH) as codes_file:).
>
> Is it sane to switch to this Python version for the Sugar platform? More
> readings on what is new in 2.6 at [2]. Python 2.6 is available in F11,
> hence 0.84. Not sure for the other distributions...
>
> Objections, comments?

If depending on 2.6 isn't desirable, we can use __future__ imports.
(from __future__ import with_statement).


More information about the Sugar-devel mailing list