[PATCH] Python 2.6 and 3.x compatibility

Bram Moolenaar <[email protected]> Mon, 06 Apr 2009 22:15:25 +0200
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Leandro Lucarella wrote:

> Hi! Attached are 2 patches to make A-A-P Python 2.6 compatible and to
> improve Python 3.x compatibility (it's not yet Python 3.x compatible
> as the changes needed break backward compatibility).
> 
> I guess backward compatibility should not be broken by these patches
> (at least for Python 2.x series), because I've done the patches with
> backward compatibility in mind, but I'm not sure (specially for the
> "in" operator).
> 
> Using A-A-P with Python 2.6 passes all the tests.
> 
> Adding support for Python 3.x is backward incompatible, so I guess a
> new branch should be done to tackle that. If there are interest in
> this, I could provide patches for this too.

As I mentioned in another thread: Since it's not possible to make Aap
work both with 2.x and 3.x, and I don't like having two branches, I
prefer not to work on Python 3.x support.

In my opinion there is no good reason for Python 3.x to not be backwards
compatible with 2.x scripts.  They could have solved that somehow.  It
irritates me that they intentionally cause problems for scripts that are
not maintained.  It's a "not my problem" attitude.

-- 
       "To whoever finds this note -
       I have been imprisoned by my father who wishes me to marry
       against my will.  Please please please please come and rescue me.
       I am in the tall tower of Swamp Castle."
   SIR LAUNCELOT's eyes light up with holy inspiration.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com