Re: difference between import from mod.func() and x=mod.func()

2006-06-21 Thread Hari Sekhon
I take it that it's not worth listening to that tutorial and just using good old "import from", which I suspect is better anyway since it imports less..."uneducated premature optimisation" - I take it this is insulting a that programmer's progexuality...! "import from" it is then unless anybody has

Re: difference between import from mod.func() and x=mod.func()

2006-06-20 Thread Fredrik Lundh
Hari Sekhon wrote: > What is the difference in terms of efficiency and speed between > > from os import path > > and > > import os > path=os.path the only difference is that the former only sets the "path" variable, while the latter leaves both "os" and "path" in your namespace. > I would think