lilydjwg wrote:

> I made a patch to fix some bugs related to Vim's Python3 support. The
> bugs I found are:
> 
> * vim.error is a `str` instead of an `Exception` object, so `except` or
>   `raise` it causes a `SystemError` exception
> * buffer objects do not support slice assignment
> * when exchange text between Vim and Python, multibyte texts become
>   gabage or cause Unicode Expceptions, etc
> * `py3file` tries to read in the file as Unicode, sometimes causes
>   UnicodeDecodeException
> 
> The patch works on my Ubuntu Linux 32bit and Windows XP SP3 and should
> apply to any Vim 7.3+ version.

I have included the patch, but on my Ubuntu system I get this error:

  E448: Could not load library function PyUnicode_UCSX_*

when doing something simple as ":py3 print('hello')"

Can you fix that?

-- 
If Microsoft would build a car...
... Occasionally your car would die on the freeway for no
reason. You would have to pull over to the side of the road,
close all of the car windows, shut it off, restart it, and
reopen the windows before you could continue. For some reason
you would simply accept this.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui