Haoyu Bai | 11 Aug 17:21

Python 1.x and -apply support

Hi,

I just found my implementation of the Python backend accidentally
dropped the '-apply' feature. Should we continue to support the
-apply?

As I know, the apply() is only useful in Python 1.x, since 2.0
introduced the extended call syntax, eg. the foo(*arg, **kw) calling
style. However, Python 1.x is so old, could we drop it?

Thanks.

--

-- 
Haoyu Bai

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Olly Betts | 12 Aug 07:25
Favicon
Gravatar

Re: Python 1.x and -apply support

On 2008-08-11, Haoyu Bai <divinekid <at> gmail.com> wrote:
> I just found my implementation of the Python backend accidentally
> dropped the '-apply' feature. Should we continue to support the
> -apply?
>
> As I know, the apply() is only useful in Python 1.x, since 2.0
> introduced the extended call syntax, eg. the foo(*arg, **kw) calling
> style. However, Python 1.x is so old, could we drop it?

I think so.  There's no point expending effort to support versions of
languages which are no longer supported by their own developers, nor
widely used.  If it makes things easier, dropping early 2.0, 2.1,
and maybe even 2.2 seems reasonable to me.

We should document any minimum requirement though - currently the Python
chapter says:

    This chapter describes SWIG's support of Python. SWIG is compatible
    with most recent Python versions including Python 2.2 as well as
    older versions dating back to Python 1.5.2. For the best results,
    consider using Python 2.0 or newer.

I suggest "should work with Python 2.0 or newer", and "2.4 or newer for
best results".  Once your GSoC changes are merged, we should explicitly
mention 3.0 as supported too.

Cheers,
    Olly

-------------------------------------------------------------------------
(Continue reading)


Gmane