in example - builds the source code for dynamic binding on imports example - pp \integrate\extend\cenviron\makefile cenviron #################################################################compile cenviron into cenviron dll-- shareable object file on cygwinwhich is loaded dynamically when first imported #################################################################pylib /usr/local/bin pyinc /usr/local/include/python cenviron dllcenviron gcc cenviron - - $(pyinc-shared clean- $(pylib-lpython - $rm - pyc cenviron dll to buildtype make - makefile cenviron at your shell to runmake sure the resulting dll file is in directory on python' module path (the current working directory works too)/pp /integrate/extend/cenvironpython import cenviron cenviron getenv('user'like os environ[keybut refetched 'markcenviron putenv('user''gilligan'like os environ[key]=value cenviron getenv('user' sees the changes too 'gilliganas beforecenviron is bona fide python module object after it is importedwith all the usual attached informationand errors are raised and reported correctly on errorsdir(cenviron['__doc__''__file__''__name__''__packge__''getenv''putenv'cenviron __file__ 'cenviron dllcenviron __name__ 'cenvironcenviron getenv cenviron cenviron getenv('home''/home/markcenviron getenv('nonesuch'systemerrorerror calling getenv python/ integration