Lupa

Latest version: v2.4

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

Scan your dependencies

Page 5 of 8

0.18

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

* fix iteration by returning ``Py_None`` object for ``None`` instead
of ``nil``, which would terminate the iteration

* when converting Python values to Lua, represent ``None`` as a
``Py_None`` object in places where ``nil`` has a special meaning,
but leave it as ``nil`` where it doesn't hurt

* support for counter start value in ``python.enumerate()``

* native implementation for ``python.enumerate()`` that is several
times faster

* much faster Lua iteration over Python objects

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

Page 5 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.