/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/python/external_runtime/runme.py
20 строк
408 B
William S Fulton
Python external_runtime example fixup
10 апр 2025, 10:13
10 апр 2025, 10:13
61f0bbe
Код
Авторство
О чём код?
# file: runme.py # This file illustrates the external runtime feature. import example class MeshHolder(object): def __init__(self): self.__mesh = example.Mesh(42) def mesh(self): return self.__mesh if example.is_python_builtin(): print("SWIG external runtime and builtin not currently working") else: obj = MeshHolder() f = example.MeshCaller(obj) print("All done")