Scripting Guide > Extending JMP > Work with Python > JMP Scoping Operators and Python
发布日期: 09/18/2023

JMP Scoping Operators and Python

A JMP object sent to Python with Python Send() uses the same JMP reference as the name of the Python object that gets created. For example, sending the JMP variable dt to Python creates a Python object named dt.

The colon and double colon JSL scoping operators (: and ::) are not valid in Python object names, so the colons are converted as follows:

A single colon scoping operator is replaced with an underscore (_).

For example, sending nsref:dt to Python creates a corresponding Python object named nsref_dt.

A double colon scoping operator (designating a global variable) is ignored.

For example, sending ::dt to Python creates a corresponding Python object named dt.

Note: The Python Name option for Python Send() has a quoted string argument that contains a valid Python object name. The JMP object sent to Python becomes a Python object with the specified name.

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).