GiD - The personal pre and post processor

What's New In Tohil 4.3

Tohil 4.3 is mostly a maintenance release. One nice improvement, TclProcs now return the tclobj datatype by default. If you haven’t seen them, TclProcs are the slickest way to invoke Tcl procs from Python using tohil. A few releases back we changed tohil.call and tohil.eval to return Python tclobj objects by default (which can be overridden). Now TclProcs work that way too.

Since tclobjs behave like strings when used as strings in Python, very little if any code, even code that makes extensive use of TclProcs, should require changes.

Additional Improvements

  • Much faster Python-to-Tcl floating point and integer conversions.

  • Tohil previously stored a Python capsule containing a pointer to its corresponding Tcl interpreter in __main__.interp and you could make Python crash by doing like interp = ‘’” before importing tohil. This renames interp to something way less likely to have a conflict.

  • Many new tests

Bug Fixes

  • Thread state handling improvements aka bug and crash fixes when using Tohil/Python from multiple Tcl interpreters.

  • Tohil tclobj integer math is now always performed at 64-bits, even on 32-bit machines.

  • Fixed infinite recursion when Tohil’s exception handler caused an exception.

Improved Build Support

For release notes on github, visit the Tohil github repo.

For the full changelog, visit the Tohil github changelog between 4.2.0 and 4.3.0.

COPYRIGHT © 2022 · GID · CIMNE