Skip to content

2022-03-22

Compare
Choose a tag to compare
@thierry-martinez thierry-martinez released this 22 Mar 09:14
  • New function Py.Import.exec_code_module_from_string
    (suggested by Francois Berenger, #78)

  • New function Py.Module.compile provides a better API than Py.compile.

  • Py.Object.t can now be serialized (with Marshal or output_value), using Python
    pickle module

  • Cross-compiling friendly architecture detection
    (suggested by @EduardoRFS, https://discuss.ocaml.org/t/a-zoo-of-values-for-system/8525/20)

  • Detect macro unix instead of __linux__, to handle *BSD OSes
    (reported by Chris Pinnock, #74)

  • Fix bug in Windows

  • Null checks for many functions raising OCaml exceptions, instead of segmentation fault
    (initial implementation by Laurent Mazare, #72)

  • Fix wide character conversion bugs leading to segmentation fault in Py_wfopen
    (fixed by Jerry James, #75)

  • Gc.full_major () before unloading libpython in Py.finalize, to prevent
    segfaulting on finalizing dangling references to Python values after the library
    had been unloaded
    (reported by Denis Efremov on coccinelle mailing list)

  • Fix segmentation fault when ~debug_build:true was passed to Py.initialize
    (reported by Stéphane Glondu, #79)