On 30/12/08 20:58, Daniel Hast wrote:
> Since Python 3.0 is incompatible with earlier versions of Python, it is
> also incompatible with Vim 7.2, apparently due to changes in the C
> interface. I first brought this up on the vim_use mailing list, but it
> seems to be more of development issue since it deals with Vim's source
> code. (original discussion
> <http://groups.google.com/group/vim_use/browse_thread/thread/4aaceb7ee66e68fb/d5ea6610cbe365dd?hl=en&lnk=gst>)
>
> PEP 3123 <http://www.python.org/dev/peps/pep-3123/> seems to be the
> source of some of the problems, since PyObject_HEAD works in a different
> way in Python 3.0 than how it's used in Vim. I don't know C very well,
> so I'm not sure what needs to be changed beyond that.
>
> What changes are needed to make Vim work with Python 3.0, and can those
> changes be made without becoming incompatible with earlier versions of
> Python?
>
> Daniel Hast

I don't know what changes need to be made, but I suppose they can be 
made without breaking compatibility, by making sure that when 
FEAT_PYTHON is defined, another #define has the Python version, and 
having conditional-compile #if lines testing that where necessary. This 
would, I suppose, involve changes to src/if_python.c and possibly 
elsewhere (configure maybe, and/or the various makefiles).

AFAIK, no such changes have been brought into the Vim source yet, so 
unless you want to make and test them, or know someone who will, ATM if 
you want Vim with Python you're better off staying with Python 2.x


Best regards,
Tony.
-- 
Why don't elephants eat penguins ?

Because they can't get the wrappers off ...

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui