[ctypesgen] Python 3

33 views
Skip to first unread message

Arfrever Frehtes Taifersar Arahesis

unread,
Apr 18, 2009, 12:16:13 AM4/18/09
to Ctypesgen Development
Python 3 has been available for some time and I think that Ctypesgen could
support Python 3. I volunteer to perform appropriate changes required for
compatibility with Python 3.

I would like to know what is the minimal Python version supported by
Ctypesgen.

--
Arfrever Frehtes Taifersar Arahesis

signature.asc

David James

unread,
Apr 21, 2009, 3:59:13 PM4/21/09
to ctyp...@googlegroups.com
Hi Arfrever,

Sorry for the slow response.

The minimum version of Python supported by the Ctypesgen should probably be Python 2.4. I think it would be great to support Python 3, as long as we can do that without breaking compatibility with Python 2.4. What do you think the best way is to do that?

It would be fine with me if a translation script were needed to be run on the source code to make ctypesgen work with Python 3. We might use such a script to generate a release tarball which works out of the box with Python 3.

Cheers,

David

Arfrever Frehtes Taifersar Arahesis

unread,
Apr 24, 2009, 12:18:31 AM4/24/09
to Ctypesgen Development
2009-04-21 21:59:13 David James napisał(a):
> Hi Arfrever,
>
> Sorry for the slow response.
>
> The minimum version of Python supported by the Ctypesgen should probably be
> Python 2.4. I think it would be great to support Python 3, as long as we can
> do that without breaking compatibility with Python 2.4. What do you think
> the best way is to do that?
>
> It would be fine with me if a translation script were needed to be run on
> the source code to make ctypesgen work with Python 3. We might use such a
> script to generate a release tarball which works out of the box with Python
> 3.

Python >=2.6 (including Python 3) contains 2to3 tool which performs some
changes for compatibility with Python 3. We might use 2to3 during generation
of a release tarball in case of changes which aren't compatible with Python 2.

signature.asc

David James

unread,
Apr 24, 2009, 1:03:49 AM4/24/09
to ctyp...@googlegroups.com
On Thu, Apr 23, 2009 at 9:18 PM, Arfrever Frehtes Taifersar Arahesis
<arfrev...@gmail.com> wrote:
> 2009-04-21 21:59:13 David James napisał(a):
>> Hi Arfrever,
>>
>> Sorry for the slow response.
>>
>> The minimum version of Python supported by the Ctypesgen should probably be
>> Python 2.4. I think it would be great to support Python 3, as long as we can
>> do that without breaking compatibility with Python 2.4. What do you think
>> the best way is to do that?
>>
>> It would be fine with me if a translation script were needed to be run on
>> the source code to make ctypesgen work with Python 3. We might use such a
>> script to generate a release tarball which works out of the box with Python
>> 3.
>
> Python >=2.6 (including Python 3) contains 2to3 tool which performs some
> changes for compatibility with Python 3. We might use 2to3 during generation
> of a release tarball in case of changes which aren't compatible with Python 2.

That sounds great!

Cheers,

David

Arfrever Frehtes Taifersar Arahesis

unread,
Jul 5, 2009, 12:26:43 AM7/5/09
to Ctypesgen Development
Subversion doesn't support local commits or changelists associated with
specific changes (not files), so I will create a branch to simplify
development of support for Python 3.
signature.asc

Sage La Torra

unread,
Jul 8, 2009, 12:36:23 PM7/8/09
to ctyp...@googlegroups.com
All sounds good to me. I'll also volunteer to help make any needed changes.  

Reply all
Reply to author
Forward
0 new messages