Skip to content

Commit

Permalink
Support for Python 3 in libclang python bindings
Browse files Browse the repository at this point in the history
Summary:
Python bindings tests now pass in Python 3.

`map` in Python 3 is lazily evaluated so the method by which functions are registered needed updating.

Strings are unicode in Python 3 not UTF-8, I've tried to create an new c_types-like class (c_string_p) to automate the conversion.

String conversions made explicit where required.

Reviewers: eliben, nemanjai, skalinichev, compnerd

Subscribers: mgorny, cfe-commits

Differential Revision: https://reviews.llvm.org/D26082

llvm-svn: 285909
  • Loading branch information
jbcoe committed Nov 3, 2016
1 parent ec1bce8 commit dad22c7
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 56 deletions.

0 comments on commit dad22c7

Please sign in to comment.