attribute package imports import your file from package create subdirectory called mypkg nested in directory on your module import search pathcopy or move the mymod py module file you created in exercise or into the new directoryand try to import it with package import of the form import mypkg mymod and call its functions try to fetch your counter functions with from too you'll need to add an __init__ py file in the directory your module was moved to make this gobut it should work on all major python platforms (that' part of the reason python uses as path separatorthe package directory you create can be simply subdirectory of the one you're working inif it isit will be found via the home directory component of the search pathand you won' have to configure your path add some code to your __init__ pyand see if it runs on each import reloads experiment with module reloadsperform the tests in ' changer py examplechanging the called function' message and/or behavior repeatedlywithout stopping the python interpreter depending on your systemyou might be able to edit changer in another windowor suspend the python interpreter and edit in the same window (on unixa ctrl- key combination usually suspends the current processand an fg command later resumes itthough text edit window probably works just as well circular imports in the section on recursive ( circularimport gotchasimporting recur raised an error but if you restart python and import recur interactivelythe error doesn' occur--test this and see for yourself why do you think it works to import recur but not recur (hintpython stores new modules in the built-in sys modules table-- dictionary--before running their codelater imports fetch the module from this table firstwhether the module is "completeyet or not nowtry running recur as top-level script filepython recur py do you get the same error that occurs when recur is imported interactivelywhy(hintwhen modules are run as programsthey aren' importedso this case has the same effect as importing recur interactivelyrecur is the first module imported what happens when you run recur as scriptcircular imports are uncommon and rarely this bizarre in practice on the other handif you can understand why they are potential problemyou know lot about python' import semantics test your knowledgepart exercises