2022-03-22
-
New function
Py.Import.exec_code_module_from_string
(suggested by Francois Berenger, #78) -
New function
Py.Module.compile
provides a better API thanPy.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 unloadinglibpython
inPy.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 toPy.initialize
(reported by Stéphane Glondu, #79)