On Sun, Oct 14, 2012 at 03:23:19AM +0200, Bram Moolenaar wrote:
> 
> Patch 7.3.688
> Problem:    Python 3.3 is not supported.
> Solution:   Add Python 3.3 support (Ken Takata)
> Files:      src/if_python3.c

This patch has mistakes. 'PyUnicode_AsUTF8String' returns PyObject*, not
char*[1]. This makes 'vim.current.buffer' etc not available because
comparision using strcmp between char* and PyObject*.

Maybe it should be 'PyUnicode_AsUTF8'. I've tried a global replace
's/AsUTF8String/AsUTF8/g' on src/if_python3.c and it seems ok.

[1]: 
http://docs.python.org/py3k/c-api/unicode.html?highlight=pyunicode_asutf8string#PyUnicode_AsUTF8String

-- 
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
-- 
A: Because it obfuscates the reading.
Q: Why is top posting so bad?

-- 
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