mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 00:22:00 +00:00
25 lines
605 B
Python
25 lines
605 B
Python
|
#!/usr/bin/env python3
|
||
|
import sys
|
||
|
sys.path.append('.')
|
||
|
|
||
|
from example import test_function
|
||
|
from example import some_constant
|
||
|
from example import EMyEnumeration
|
||
|
from example import EFirstEntry
|
||
|
from example import Example4
|
||
|
|
||
|
print(EMyEnumeration)
|
||
|
print(EMyEnumeration.EFirstEntry)
|
||
|
print(EMyEnumeration.ESecondEntry)
|
||
|
print(EFirstEntry)
|
||
|
|
||
|
print(test_function())
|
||
|
print(test_function(7))
|
||
|
print(test_function(EMyEnumeration.EFirstEntry))
|
||
|
print(test_function(EMyEnumeration.ESecondEntry))
|
||
|
|
||
|
print(Example4.EMode)
|
||
|
print(Example4.EMode.EFirstMode)
|
||
|
print(Example4.EFirstMode)
|
||
|
Example4.test_function(Example4.EFirstMode)
|