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...<br><br>"uneducated premature optimisation" - I take it this is insulting a that programmer's progexuality...!
<br><br><br><br>"import from" it is then unless anybody has anything else to say on the matter.<br><br><br>Thanks<br><br>Hari<br><br><br><div><span class="gmail_quote">On 20/06/06, <b class="gmail_sendername">Fredrik Lundh
</b> <<a href="mailto:fredrik@pythonware.com">fredrik@pythonware.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hari Sekhon wrote:<br><br>> What is the difference in terms of efficiency and speed between<br>><br>> from os import path<br>><br>> and<br>><br>> import os<br>> path=os.path<br><br>the only difference is that the former only sets the "path" variable, while the
<br>latter leaves both "os" and "path" in your namespace.<br><br>> I would think that the import from would be better, just curious since I<br>> read somewhere on the web, some guy's code tutorial where he did the
<br>> latter and said it was for efficiency/speed.<br><br>sounds like "uneducated premature optimization" to me.<br><br></F><br><br><br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">
http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br>