when run as separate programsfiles can also employ inter-process communication (ipctechniques naturallyall embedded code forms can also communicate with using general systemlevel toolsfilessocketspipesand so on these techniques are generally less direct and slowerthough herewe are still interested in in-process function call integration basic embedding techniques as you can probably tell from the preceding overviewthere is much flexibility in the embedding domain to illustrate common embedding techniques in actionthis section presents handful of short programs that run python code in one form or another most of these examples will make use of the simple python module file shown in example - example - pp \integrate\embed\basics\usermod py ""############################################################ code runs python code in this module in embedded mode such file can be changed without changing the layer this is just standard python code ( handles conversionsmust be on the python module search path if imported by can also run code in standard library modules like string ############################################################""message 'the meaning of life def transform(input)input input replace('life''python'return input upper(if you know any python at allyou probably know that this file defines string and functionthe function returns whatever it is passed with string substitution and uppercase conversions applied it' easy to use from python/pp /integrate/embed/basicspython import usermod usermod message 'the meaning of life usermod transform(usermod message'the meaning of python import module fetch string call function with little python api wizardryit' not much more difficult to use this module the same way in python/ integration