Re: [PATCH 2/2] Make aap more Python 3.x forward compatible
Bram Moolenaar <[email protected]> Mon, 06 Apr 2009 20:10:07 +0200
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Leandro Lucarella wrote:
> This patch changes 2 things:
> 1) Try to use html or HTMLParser module first, then use htmllib module
> 2) Use the "in" operator instead of the "has_key()" method
I'm very glad that you take the time to make improvements.
At this moment i'm not so concerned about Python 3.x support. It's not
backwards compatible with 2.x and, as far as I know, it's impossible to
write a Python script that runs on both 2.x and 3.x. I rather stick
with Python 2.x for a while, since every system should have that
version. Aap is actually compatible with Python 1.5x to maximize the
number of systems it runs on.
What is the advantage of using "in" instead of "has_key()?
--
FATHER: One day, lad, all this will be yours ...
PRINCE: What - the curtains?
"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