Re: [Tutor] general import VS importing inside a function

2009-08-29 Thread Fidel Sanchez-Bueno
thanks both (Alan and Kent)! now am clear about the right way of making import.. salu2.. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] general import VS importing inside a function

2009-08-29 Thread Kent Johnson
On Fri, Aug 28, 2009 at 10:34 PM, Fidel Sanchez-Bueno wrote: > What is the best aproach when it comes to import??, is allways better to > make all the import calls in the global scope, making the overall runtime of > the program better because the program is not going to import something > everytim

Re: [Tutor] general import VS importing inside a function

2009-08-29 Thread Alan Gauld
"Fidel Sanchez-Bueno" wrote What is the best aproach when it comes to import??, is allways better to make all the import calls in the global scope, making the overall runtime of the program better because the program is not going to import something everytime a function is called, or is bett

[Tutor] general import VS importing inside a function

2009-08-28 Thread Fidel Sanchez-Bueno
What is the best aproach when it comes to import??, is allways better to make all the import calls in the global scope, making the overall runtime of the program better because the program is not going to import something everytime a function is called, or is better to make specific import's in