<!--/*SC*/DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"/*EC*/-->
<html><head><title></title><style type="text/css"><!--body{padding:1ex;margin:0px;font-family:sans-serif;font-size:small;}a[href]{color:-moz-hyperlinktext !important;text-decoration:-moz-anchor-decoration;}blockquote{margin:0;border-left:2px solid #144fae;padding-left:1em;}blockquote blockquote{border-color:#006312;}blockquote blockquote blockquote{border-color:#540000;}--></style></head><body><div style="font-family: Arial; font-size: medium;" dir="ltr"><div>Are there any efficiency or style guidelines regarding the choice of "import <module>" vs. "from <module> import <name>, ..."?</div>
<div> </div>
<div>If one only needs to import a few names from a module, are there specific benefits to explictly importing these names?</div>
<div> </div>
<div>My understanding is that both forms of the import command require the entire module to be processed.</div>
<div> </div>
<div>If this comes down purely to preference, are there PEP 8-like standards regarding which approach to use when?</div>
<div> </div>
<div>Thanks,</div>
<div>Malcolm</div></div></body></html>