Suppose I have a function which uses a few external libraries,
and this function is only called once every 10 executions.

Does it make sense to import these libraries for the whole module?

import sys

def fun():
    import x, y, z

Something like this is acceptable/good practice in the scenario I was
talking about?
Does it make any difference for performances too?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to