trace through this example' output and code for more illumination herewe're moving on to the last quick example we have time and space to explore--in the name of symmetryusing python classes from using python classes in earlier in this we learned how to use +classes in python by wrapping them with swig but what about going the other way--using python classes from other languagesit turns out that this is really just matter of applying interfaces already shown recall that python scripts generate class instance objects by calling class objects as though they were functions to do this from (or ++)simply follow the same stepsimport class from modulebuild an arguments tupleand call it to generate an instance using the same api tools you use to call python functions once you've got an instanceyou can fetch its attributes and methods with the same tools you use to fetch globals out of module callables and attributes work the same everywhere they live to illustrate how this works in practiceexample - defines simple python class in module that we can utilize from example - pp \integrate\embed\pyclasss\module py call this class from to make objects class klassdef method(selfxy)return "brave % % (xyrun me from this is nearly as simple as it getsbut it' enough to illustrate the basics as usualmake sure that this module is on your python search path ( in the current directoryor one listed on your pythonpath setting)or else the import call to access it from will failjust as it would in python script as you surely know if you've gotten this far in this bookyou can make always use of this python class from python program as follows\pp \integrate\embed\pyclasspython import module object module klass(result object method('sir''robin'print(resultbrave sir robin import the file make class instance call class method using python classes in