a new release is available in the marketplace
it contains a lot of cleanups and fixes, but the biggest highlight is the upgrade to graalvm 24.2.0. There, the highlight is, that a lot more polyglot.Foreign
objects are inheriting from native python types. Means, they feel and behave like the native python object.
Foreign objects are now given a Python class corresponding to their interop traits. Foreign lists now inherit from Python
list
, foreign dictionaries fromdict
, foreign strings fromstr
, foreign iterators fromiterator
, foreign exceptions fromBaseException
, foreign numbers frompolyglot.ForeignNumber
, foreign booleans frompolyglot.ForeignBoolean
, and foreign null values fromNoneType
. This means all Python methods of these types are available on the corresponding foreign objects, which behave as close as possible as if they were Python objects.