Tags: flightaware/tohil
Tags
Fix floating point platform discrepancies; replace deprecated call to… … Py_SetProgramName; Remove ref to internal python type (#92) * Remove ref to internal python type in Tohil_TD_iter_repr * Make Tohil_TD_iter_repr receive be proper argument, the actual iterator type that goes with it, Tohil_TD_IterObj. * Conform Tohil_TD_iter_repr to reference its object using the standard "self" name. * Use PyConfig in place of deprecated Py_SetProgramName * In Tohil_Init, use Python's PyConfig means of configuring the Python interpreter in place of the deprecated Py_SetProgramName. * Also when Tcl is the parent, use the PyConfig method of telling Python not to install signal handlers. This should work with Python versions back to and including 3.8. * resolve FP test discrepancies between x86 and ARM Conform Tohil's behavior of tclobj python object's floor division and remainder implementations both inplace and in-calculation, to Python's way of doing it as seen in cpython/Objects/floatobject.c. * remove "float" from "float division by zero" error msgs * possibly fix linux CI workflow with change from resuna * Update python for Ubuntu 24.04.2 * Sync rest of script to new python. * Fix python 3.13 deprecation warning in tcl-side tests Use of datetime.datetime.utcfromtimestamp() triggers a deprecation warning under Python 3.13. This commit changes the call to use datetime.datetime.fromtimestamp() instead, in accordance with the recommendation of the deprecation warning message. --------- Co-authored-by: Peter da Silva <peter.dasilva@flightaware.com>
PreviousNext