1. Dec 30, 2019
    • Wenzel Jakob's avatar
      Use C++17 fold expressions when casting tuples and argument lists · fd3a93c5
      Wenzel Jakob authored
      This commit introduces the use of C++17-style fold expressions when
      casting tuples & the argument lists of functions.
      
      This change can improve performance of the resulting bindings: because
      fold expressions have short-circuiting semantics, pybind11 e.g. won't
      try to cast the second argument of a function if the first one failed.
      This is particularly effective when working with functions that have
      many overloads with long argument lists.
      fd3a93c5
  2. Dec 19, 2019
  3. Dec 13, 2019
  4. Dec 12, 2019
  5. Dec 11, 2019
  6. Nov 28, 2019
  7. Nov 25, 2019
  8. Nov 24, 2019
  9. Nov 16, 2019
  10. Nov 14, 2019
  11. Oct 31, 2019
  12. Oct 23, 2019
  13. Oct 22, 2019
  14. Oct 18, 2019
  15. Oct 17, 2019
    • nicolov's avatar
      Fix build with -Wmissing-prototypes (#1954) · de5a29c0
      nicolov authored
      When building with `-Werror,-Wmissing-prototypes`, `clang` complains about missing prototypes for functions defined through macro expansions. This PR adds the missing prototypes.
      
      ```
      error: no previous prototype for function 'pybind11_init_impl_embedded' [
      -Werror,-Wmissing-prototypes]                                           
      PYBIND11_EMBEDDED_MODULE(embedded, mod) {                                             
      ^                                                                           
      external/pybind11/include/pybind11/embed.h:61:5: note: expanded from macro 'PYBIND11_EMBEDDED_MODULE'
          PYBIND11_EMBEDDED_MODULE_IMPL(name)                                       \
          ^                                                                         
      external/pybind11/include/pybind11/embed.h:26:23: note: expanded from macro 'PYBIND11_EMBEDDED_MODULE_IMPL'
            extern "C" void pybind11_init_impl_##name() {      \                  
                            ^                                             
      <scratch space>:380:1: note: expanded from here                     
      pybind11_init_impl_embedded                                                                                                                      
      ^                                                                                                                                                
      1 error generated.
      ```
      de5a29c0
  16. Oct 15, 2019
  17. Oct 09, 2019
    • Sergei Izmailov's avatar
      Adapt to python3.8 C API change (#1950) · 6cb584e9
      Sergei Izmailov authored
      * Adapt to python3.8 C API change
      
      Do `Py_DECREF(type)` on all python objects on deallocation
      
      fix #1946
      
      * Add bare python3.8 build to CI matrix
      
      While numpy/scipy wheels are available, run python3.8 test without them
      6cb584e9
  18. Oct 07, 2019
  19. Sep 22, 2019
  20. Sep 20, 2019