<br><br><div><span class="gmail_quote">2005/12/19, Bo Peng <<a href="mailto:bpeng@rice.edu">bpeng@rice.edu</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear list,<br><br>Is there a better way than doing<br><br>try:<br>   import aModule<br>except:<br>   has_aModule = False<br>else:<br>   has_aModule = True<br><br>The main concern here is that loading aModule is unnecessary (and may
<br>take time).<br><br></blockquote></div>If loading aModule is unnecessary, the best way is not loading it atall.<br>