On 3 April 2011 20:20, Karol M. Langner <kar...@gm...> wrote:
> On Sat, Apr 02, 2011 at 06:47:42PM +0100, Noel O'Boyle wrote:
>> regression.py now passes on the Python 3 branch. The biggest change is
>> use of "next(inputfile)" instead of "inputfile.next()", and integer
>> division (if desired) needs to be specified explicitly with "//".
>>
>> How do you guys feel about transitioning over to this branch in the
>> next few months? Py3 came out in Dec 2008, and we are going to have to
>> make the move at some point. I don't really want to have to maintain
>> two releases of cclib, so let me know what you think.
>>
>> - Noel
>>
>> On 1 April 2011 13:35, Noel O'Boyle <bao...@gm...> wrote:
>> > Now that numpy has been ported to Py3, I've created a branch for
>> > Python 3. I would anticipate that a release of cclib in 12 months time
>> > would be based on Python 3.
>> >
>> > - Noel
>
> I'm for it. I don't think we heavily rely on any obsolete elements
> of the language. The minor things (like the ones you mention) will
> still work for 2.6 and later, so we can bump up the suggested
> dependencies in the INSTALL file. We can also try to import
> from __future__ to support older versions.
The differences are a bit greater than I implied maybe (e.g. all the
import statements have changed). It won't be possible to run the
Python 3 branch with a version of Python 2 (or not without a lot of
work).
- Noel
|