mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 06:11:25 +00:00
added module::import statement
This commit is contained in:
@@ -9,6 +9,7 @@ print(example.__name__)
|
||||
print(example.submodule.__name__)
|
||||
|
||||
from example.submodule import *
|
||||
from example import OD
|
||||
|
||||
submodule_func()
|
||||
|
||||
@@ -26,3 +27,4 @@ print(b.a1)
|
||||
print(b.get_a2())
|
||||
print(b.a2)
|
||||
|
||||
print(OD([(1, 'a'), (2, 'b')]))
|
||||
|
||||
Reference in New Issue
Block a user