Enumeration Parameters - Python Call Parameters
- Updated2026-02-03
- 1 minute(s) read
Enumeration Parameters - Python Call Parameters
Enumeration Parameters
You can pass TestStand enumerations to Python module calls as Python enumerations. To pass the TestStand enumeration as a Python enumeration, specify a type mapping between the TestStand enumeration and the Python enumeration on the Python Parameter Passing tab of the Type Properties dialog box.
Note
If you do not specify a type mapping for the TestStand enumeration type, TestStand passes enumerations to Python as numbers.
Python defines four categories of enumerations: Enum, Flag, IntEnum, and IntFlag. The following table lists how different TestStand enumeration types map to the corresponding Python enumeration types.
| TestStand Enumeration Type | Python Enumeration Type |
| Loose | IntFlag |
| Strict and not Flag | Enum/IntEnum |
| Strict and Flag | Flag |