Skip to content

v1.1.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@mmomtchev mmomtchev released this 04 Nov 22:26
· 454 commits to main since this release

New Features

  • Converting JS functions to Python callables
  • Expiring of function objects
  • Converting of bytes and bytearray to Buffer and Buffer to bytearray
  • Converting between TypedArray and array
  • Basic tracking of the memory held by Python objects referenced in JS by the V8 GC
  • proxifyed object do not intercept and redirect calls to PyObject methods if the Python object has a method with the same name - ie. calling item() on a non-proxified PyObject invokes PyObject.item() but if the underlying Python object of a proxified object also has an item() function, calling item() on the proxified object will invoke the Python method
  • profixy always return the same reference if called with a previously seen PyObject reference
  • Support BigInt
  • Return the Python traceback in pythonTrace and add a PythonError TypeScript type
  • Do not allow PYTHONPATH to override PYTHONHOME when using the builtin
  • Ignore the last argument of a Python function call if it is undefined - this allows to pass a last argument as a dictionary by calling fn(obj, undefined) instead of fn(obj) which will transform obj into named kw arguments
  • Support PyObject.keys and PyObject.values on profixyed objects
  • (internals) New automatic reference counting

Bug Fixes

  • Fix [#6], proxified objects are wrongly caching values returned by getters