[cfe-dev] Support for Python3 clang bindings

Eli Bendersky eliben at google.com
Thu May 28 12:19:24 PDT 2015

On Wed, May 27, 2015 at 6:47 AM, Juan Jose Lopez Villarejo <
jj.lopezvillarejo at cern.ch> wrote:

>  Hello,
> I was wondering if someone else feels that Python3 should become
> eventually the standard for the clang python bindings, or perhaps offering
> support for the two of them (Python and Python3).
> I am the main author of the clang-based project Flowgen, "Flowchart-Based
> Documentation for C++ Codes.".
> http://jlopezvi.github.io/Flowgen/simple_example.html
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__jlopezvi.github.io_Flowgen_simple-5Fexample.html&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=CLbt-9W9J50MLx6VfyILlCI2vSqDA13fagjcNHWboXA&s=on8iMUq47QXEWeg0WqdonQ8Y4QijTmAWUMUKpvUCd88&e=>
> This project is running on old Python3 clang bindings.
> https://github.com/kennytm/clang-cindex-python3
> Today I had to apply my first fix in the cindex.py file to make Flowgen
> work with recent Mac Os. Someone else pointed out this fix by looking the
> analogue file at the official repository
> https://github.com/llvm-mirror/clang
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_llvm-2Dmirror_clang&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=CLbt-9W9J50MLx6VfyILlCI2vSqDA13fagjcNHWboXA&s=naDFY9OoBikrf2ymnFTUWC4y37eDtcNhXlw8YSQSKOE&e=>
It's fairly common these days for Python library to be dual 2&3 compatible.
I don't think there will be objections to someone sending a patch that will
make cindex work with Python 3 too (in parallel with Python 2).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150528/2441eda7/attachment.html>

More information about the cfe-dev mailing list