Changelog

For convenience, this changelog keeps tracks of changes with version numbers of the main cppyy package, but many of the actual changes are in the lower level packages, which have their own releases. See packages, for details on the package structure. PyPy support lags CPython support.

master: 1.7.0

  • Upgrade to cppyy-cling 6.20.2
  • Fix crash when handing a by-value object to make_shared
  • Fixed a few shared/unique_ptr corner cases
  • No longer attempt auto-cast on classes without RTTI

2020-03-15: 1.6.2

  • Respect __len__ when using bound C++ objects in boolean expressions
  • Support UTF-8 encoded unicode through std::string
  • Support for std::byte
  • Enable assignment to function pointer variable
  • Allow passing cppyy.nullptr where are function pointer is expected
  • Disable copy construction into constructed object (use __assign__ instead)
  • Cover more cases when to set a lifeline
  • Lower priority of implicit conversion to temporary with initializer_list ctor
  • Add type reduction pythonization for trimming expression template type trees
  • Allow mixing std::string and str as dictionary keys
  • Support C-style pointer-to-struct as array
  • Support C-style enum variable declarations
  • Fixed const_iterator by-ref return type regression
  • Resolve enums into the actual underlying type instead of int
  • Remove ‘-isystem’ from makepch flags
  • Extended documentation

2020-01-04: 1.6.1

  • Mapped C++ exception reporting detailing
  • Mapped C++ exception cleanup bug fix
  • STL vector constructor passes the CPython sequence construction
  • STL vector slicing passes the CPython sequence slicing tests
  • Extended documentation

2019-12-23: 1.6.0

  • Classes derived from std::exception can be used as Python exceptions
  • Template handling detailing (for Eigen)
  • Support keyword arguments
  • Added add_library_path at module level
  • Extended documentation
  • Fix regression bugs: #176, #179, #180, #182

2019-11-07: 1.5.7

  • Allow implicit converions for move arguments
  • Choose vector over initializer_list if part of the template argument list

2019-11-03: 1.5.6

  • Added public C++ API for some CPyCppyy core functions (CPython only)
  • Support for char16_t/char16_t* and char32_t/char32_t*
  • Respect std::hash in __hash__
  • Fix iteration over vector of shared_ptr
  • Length checking on global variables of type ‘signed char[N]’
  • Properly support overloaded templated with non-templated __setitem__
  • Support for array of const char* as C-strings
  • Enable type resolution of clang’s builtin __type_pack_element
  • Fix for inner class type naming when it directly declares a variable

2019-10-16: 1.5.5

  • Added signal -> exception support in cppyy.ll
  • Support for lazily combining overloads of operator*/+-
  • No longer call trivial destructors
  • Support for free function unary operators
  • Refactored and optimized operator==/!= usage
  • Refactored converters/executors for lower memory usage
  • Bug fixes in rootcling and _cppyy_generator.py

2019-09-25: 1.5.4

  • operator+/* now respect C++-side associativity
  • Fix potential crash if modules are reloaded
  • Fix some portability issues on Mac/Windows of cppyy-cling

2019-09-15: 1.5.3

  • Performance improvements
  • Support for anonymous/unnamed/nested unions
  • Extended documentation

2019-09-06: 1.5.2

  • Added a “low level” interface (cppyy.ll) for hard-casting and ll types
  • Extened support for passing ctypes arguments through ptr, ref, ptr-ptr
  • Fixed crash when creating an array of instances of a scoped inner struct
  • Extended documentation

2019-08-26: 1.5.1

  • Upgrade cppyy-cling to 6.18.2
  • Various patches to upstream’s pre-compiled header generation and use
  • Instantiate templates with larger integer types if argument values require
  • Improve cppyy.interactive and partially enable it on PyPy, IPython, etc.
  • Let __overload__ be more flexible in signature matching
  • Make list filtering of dir(cppyy.gbl) on Windows same as Linux/Mac
  • Extended documentation

2019-08-18: 1.5.0

  • Upgrade cppyy-cling to 6.18.0
  • Allow python-derived classes to be used in templates
  • Stricter template resolution and better caching/performance
  • Detailed memory management for make_shared and shared_ptr
  • Two-way memory management for cross-inherited objects
  • Reduced memory footprint of proxy objects in most common cases
  • Allow implicit conversion from a tuple of arguments
  • Data set on namespaces reflected on C++ even if data not yet bound
  • Generalized resolution of binary operators in wrapper generation
  • Proper naming of arguments in namespaces for std::function<>
  • Cover more cases of STL-liker iterators
  • Allow std::vector initialization with a list of constructor arguments
  • Consistent naming of __cppname__ to __cpp_name__
  • Added __set_lifeline__ attribute to overloads
  • Fixes to the cmake fragments for Ubuntu
  • Fixes linker errors on Windows in some configurations
  • Support C++ naming of typedef of bool types
  • Basic views of 2D arrays of builtin types
  • Extended documentation

2019-07-01 : 1.4.12

  • Automatic conversion of python functions to std::function arguments
  • Fix for templated operators that can map to different python names
  • Fix on p3 crash when setting a detailed exception during exception handling
  • Fix lookup of std::nullopt
  • Fix bug that prevented certain templated constructors from being considered
  • Support for enum values as data members on “enum class” enums
  • Support for implicit conversion when passing by-value

2019-05-23 : 1.4.11

  • Workaround for JITed RTTI lookup failures on 64b MS Windows
  • Improved overload resolution between f(void*) and f<>(T*)
  • Minimal support for char16_t (Windows) and char32_t (Linux/Mac)
  • Do not unnecessarily autocast smart pointers

2019-05-13 : 1.4.10

  • Imported several FindCppyy.cmake improvements from Camille’s cppyy-bbhash
  • Fixes to cppyy-generator for unresolved templates, void, etc.
  • Fixes in typedef parsing for template arguments in unknown namespaces
  • Fix in templated operator code generation
  • Fixed ref-counting error for instantiated template methods

2019-04-25 : 1.4.9

  • Fix import error on pypy-c

2019-04-22 : 1.4.8

  • std::tuple is now iterable for return assignments w/o tie
  • Support for opaque handles and typedefs of pointers to classes
  • Keep unresolved enums desugared and provide generic converters
  • Treat int8_t and uint8_t as integers (even when they are chars)
  • Fix lookup of enum values in global namespace
  • Backported name mangling (esp. for static/global data lookup) for 32b Windows
  • Fixed more linker problems with malloc on 64b Windows
  • Consistency in buffer length calculations and c_int/c_uint handling on Windows
  • Properly resolve overloaded functions with using of templates from bases
  • Get templated constructor info from decl instead of name comparison
  • Fixed a performance regression for free functions.

2019-04-04 : 1.4.7

  • Enable initializer_list conversion on Windows as well
  • Improved mapping of operator() for indexing (e.g. for matrices)
  • Implicit conversion no longer uses global state to prevent recursion
  • Improved overload reordering
  • Fixes for templated constructors in namespaces

2019-04-02 : 1.4.6

  • More transparent use of smart pointers such as shared_ptr
  • Expose versioned std namespace through using on Mac
  • Improved error handling and interface checking in cross-inheritance
  • Argument of (const/non-const) ref types support in callbacks/cross-inheritance
  • Do template argument resolution in order: reference, pointer, value
  • Fix for return type deduction of resolved but uninstantiated templates
  • Fix wrapper generation for defaulted arguments of private types
  • Several linker fixes on 64b Windows

2019-03-25 : 1.4.5

  • Allow templated free functions to be attached as methods to classes
  • Allow cross-derivation from templated classes
  • More support for ‘using’ declarations (methods and inner namespaces)
  • Fix overload resolution for std::set::rbegin()/rend() operator ==
  • Fixes for bugs #61, #67
  • Several pointer truncation fixes for 64b Windows
  • Linker and lookup fixes for Windows

2019-03-20 : 1.4.4

  • Support for ‘using’ of namespaces
  • Improved support for alias templates
  • Faster template lookup
  • Have rootcling/genreflex respect compile-time flags (except for –std if overridden by CLING_EXTRA_FLAGS)
  • Utility to build dictionarys on Windows (32/64)
  • Name mangling fixes in Cling for JITed global/static variables on Windows
  • Several pointer truncation fixes for 64b Windows

2019-03-10 : 1.4.3

  • Cross-inheritance from abstract C++ base classes
  • Preserve ‘const’ when overriding virtual functions
  • Support for by-ref (using ctypes) for function callbacks
  • Identity of nested typedef’d classes matches actual
  • Expose function pointer variables as std::function’s
  • More descriptive printout of global functions
  • Ensure that standard pch is up-to-date and that it is removed on uninstall
  • Remove standard pch from wheels on all platforms
  • Add -cxxflags option to rootcling
  • Install clang resource directory on Windows