Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
pyscripter edited this pageFeb 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 alsoHow Python for Delphi finds your Python distribution for information about PythonEngine properties that affect the loading of Python.

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp