Scripting Guide > Python > JSL-to-Python Interfaces > JMP Scoping Operators and Python
발행일 : 03/10/2025

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).