Is importing a file good in Python
<p>I have around 80 lines of a function in a file. I need the same functionality in another file so I am currently importing the other file for the function.</p>

<p>My question is that in terms of running time on a machine which technique would be better :- importing the complete file and running the function or copying the function as it is and run it from same package.</p>

<p>I know it won't matter in a large sense but I want to learn it in the sense that if we are making a large project is it better to import a complete file in Python or just add the function in the current namespace.....</p>
