Lutorpy

Latest version: v1.3.7

Safety actively analyzes 625425 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.17

-----------------

* new helper function ``python.enumerate()`` in Lua that returns a Lua
iterator for a Python object and adds the 0-based index to each
item.

* new helper function ``python.iterex()`` in Lua that returns a Lua
iterator for a Python object and unpacks any tuples that the
iterator yields.

* new helper function ``python.iter()`` in Lua that returns a Lua
iterator for a Python object.

* reestablished the ``python.as_function()`` helper function for Lua
code as it can be needed in cases where Lua cannot determine how to
run a Python function.

0.16

-----------------

* dropped ``python.as_function()`` helper function for Lua as all
Python objects are callable from Lua now (potentially raising a
``TypeError`` at call time if they are not callable)

* fix regression in 0.13 and later where ordinary Lua functions failed
to print due to an accidentally used meta table

* fix crash when calling ``str()`` on wrapped Lua objects without
metatable

0.15

-----------------

* support for loading binary Lua modules on systems that support it

0.14

-----------------

* relicensed to the MIT license used by LuaJIT2 to simplify licensing
considerations

0.13.1

-------------------

* fix Cython generated C file using Cython 0.13

0.13

-----------------

* fixed undefined behaviour on ``str(lua_object)`` when the object's
``__tostring()`` meta method fails

* removed redundant "error:" prefix from ``LuaError`` messages

* access to Python's ``python.builtins`` from Lua code

* more generic wrapping rules for Python objects based on supported
protocols (callable, getitem, getattr)

* new helper functions ``as_attrgetter()`` and ``as_itemgetter()`` to
specify the Python object protocol used by Lua indexing when
wrapping Python objects in Python code

* new helper functions ``python.as_attrgetter()``,
``python.as_itemgetter()`` and ``python.as_function()`` to specify
the Python object protocol used by Lua indexing of Python objects in
Lua code

* item and attribute access for Python objects from Lua code

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.