Syntax of importing multiple classes from a module
<p>I'm reading some code which contains the following import statement:</p>

<pre><code>from threading import local as thread_local, Event, Thread
</code></pre>

<p>At first this syntax puzzled me, but I think it is equivalent to:</p>

<pre><code>from threading import local as thread_local
from threading import Event
from threading import Thread
</code></pre>

<p>Can anyone confirm whether this is the case?</p>

<p>Yes, it is.</p>

<p>Check out all the ways that one can import a module in python:
<a href="https://docs.python.org/2/reference/simple_stmts.html#the-import-statement" rel="nofollow">https://docs.python.org/2/reference/simple_stmts.html#the-import-statement</a></p>

python