Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

4.2 is primarily a maintenance release, but includes at least one really nice new feature:

Python code passed to tohil::exec is now unindented before being passed to Python

Tohil’s #1 new feature request! Up until now, the argument to tohil::exec had to obey Python indentation rules including there being no indentation at all for the top level, leading to ugly stuff like:

...

Code Block
tohil::exec {
   def new_validate(self, data):
        return json.loads(base64.b64decode(data))
}

Additional Improvements

  • Added -nonevalue option to tohil::call, allowing the “none” sentinel to be specified arbitrarily (Retains the default value of tohil::NONE.)

  • Cleaned up tohil namespace so dir(tohil) doesn’t show modules tohil imported as if it had created them.

  • Made package forget tohil work.

  • Added support for the Tcl unload command to be able to unload the Tohil shared library. (Consider it risky, though.)

Bug Fixes

  • Fixed crash when register_callback-registered functions raised a Python exception

Improved Build Support

  • Added support for building tohil as a Debian package

  • Homebrew formula for building with homebrew