Suppose I have a function which uses a few external libraries,<br>and this function is only called once every 10 executions.<br><br>Does it make sense to import these libraries for the whole module?<br><br>import sys<br><br>
def fun():<br>    import x, y, z<br><br>Something like this is acceptable/good practice in the scenario I was talking about?<br>Does it make any difference for performances too?<br>