Skip to content

1.0.9

Latest

Choose a tag to compare

@newville newville released this 11 Jun 18:39
· 11 commits to master since this release

This fixes some usage problem and is also meant to address the securirty advisories GHSA-89v8-rhwq-hf77
and GHSA-9w56-46f6-3qhx

Changes:

  • Fix unpacking of nested tuples in comprehensions (#149 from yistarostin)

  • Fix error with lambda functions, so that calls from top level should clear previous errors and exceptions should clear the callstack before re-raising (#150)

  • Add try/except for import of ctypes, so that this module is not required from asteval to run (#152)

  • Update PyPI stats link in README

  • Remove the "exiting exceptions", 'SystemExit' and 'GeneratorExit' from the symbol table to remove the possibily of such an exception in asteval from exiting the calling application. (#153)

  • Make exception handling of BaseExceptions that are not also Exceptions (most notably, KeyboardInterrupt, which is not removed from the symbol table) more explicit, converting these to RuntimeError. (#153)

  • Add 'ctypes', 'dump, and 'tofile' as unsafe attributes of numpyndarrays, so that these cannot be acccessed. (#153)