importing a method from a class in another code : <p>I want to import a specific method of a class in a file to another file of course in the same directory, so i tried this following way</p>

<pre class="lang-py prettyprint-override"><code>from file1 import Class1
from file1 import Class1.method
</code></pre>

<p>it doesn't work and it shows me a syntax error on the python kernel on the level of the dot between Class1 and method</p>

<p><code>SyntaxError: invalid syntax</code></p>
