Skip to content
pyscripter edited this page Feb 27, 2021 · 3 revisions

Masking FPU Exceptions

Delphi raises an exception when floating operations result produce +/- infinity (e.g. division by zero). This setting is not compatible with a number of Python libraries such as numpy and scipy.

Python for Delphi provides a procedure MaskFPUExceptions that can help resolve such issues. If you get errors when using python libraries you make want to take the following statement:

 MaskFPUExceptions(True)

to either the initialization section of any unit or to the OnBeforeLoad event handler of the PythonEngine.

See also How Python for Delphi finds your Python distribution for information about PythonEngine properties that affect the loading of Python.

Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy