python classes inheriting from each other
<p>I am having 2 Python files in same directory. one.py and two.py containing classes First and Second respectively. <strong>I want import classes and inherit each other and use methods defined in each other</strong>.   </p>

<p>one.py</p>

<pre><code>from two import Second
class First(Second):
    def first(self):
       print "first"
</code></pre>

<p>two.py    </p>

<pre><code>from one import First 
class Second(First):
    def second(self):
        print "second"
</code></pre>

<p>while compiling I am getting following error. Is there any way I can overcome this. Please suggest alternative methods also.</p>

<pre><code>Traceback (most recent call last):
  File "C:\Users\uvijayac\Desktop\New folder\two.py", line 1, in &lt;module&gt;
    from one import First
  File "C:\Users\uvijayac\Desktop\New folder\one.py", line 1, in &lt;module&gt;
    from two import Second
  File "C:\Users\uvijayac\Desktop\New folder\two.py", line 1, in &lt;module&gt;
    from one import First
ImportError: cannot import name First
</code></pre>