2016-03-10 12:24:10 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
from __future__ import print_function
|
|
|
|
import sys
|
|
|
|
sys.path.append('.')
|
|
|
|
|
2016-03-26 22:04:10 +00:00
|
|
|
from example.issues import print_cchar, print_char
|
2016-04-11 16:13:08 +00:00
|
|
|
from example.issues import DispatchIssue, dispatch_issue_go
|
2016-04-21 10:21:14 +00:00
|
|
|
from example.issues import Placeholder ,return_vec_of_reference_wrapper
|
2016-03-10 12:24:10 +00:00
|
|
|
|
|
|
|
print_cchar("const char *")
|
2016-03-26 22:04:10 +00:00
|
|
|
print_char('c')
|
2016-04-11 16:13:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
class PyClass1(DispatchIssue):
|
|
|
|
def dispatch(self):
|
|
|
|
print("Yay..")
|
|
|
|
|
|
|
|
|
|
|
|
class PyClass2(DispatchIssue):
|
|
|
|
def dispatch(self):
|
|
|
|
try:
|
|
|
|
super(PyClass2, self).dispatch()
|
|
|
|
except Exception as e:
|
|
|
|
print("Failed as expected: " + str(e))
|
|
|
|
p = PyClass1()
|
|
|
|
dispatch_issue_go(p)
|
|
|
|
|
|
|
|
b = PyClass2()
|
|
|
|
dispatch_issue_go(b)
|
2016-04-20 15:00:57 +00:00
|
|
|
|
2016-04-21 10:21:14 +00:00
|
|
|
print(return_vec_of_reference_wrapper(Placeholder(4)))
|