title: Why does Python.NET use the base method instead of the method from a derived class?
body: <p><strong>Edit: This will be fixed in a new version of pythonnet (when <a href="https://github.com/pythonnet/pythonnet/pull/756" rel="nofollow noreferrer">this</a> pull request is merged).</strong></p>
  
  <p>I have a problem with Python.NET inheritance. I have a DLL which consists of the following code:</p>
  
  <pre><code>using System;
  
  namespace InheritanceTest
  {
      public class BaseClass
      {
          public bool Transmit()
          {
              throw new NotImplementedException();
          }
      }
  
      public class InheritedClass: BaseClass
      {
          public new bool Transmit()
          {
              Console.WriteLine("Success!");
              return true;
          }
      }
  }
  </code></pre>
  
  <p>I would expect a call to the <code>Transmit</code> method of an instance of <code>InheritedClass</code> to write to the console and return true and the <code>Transmit</code> method of <code>BaseClass</code> to throw a NotImplementedException.</p>
  
  <p>When running the following python code:</p>
  
  <pre><code>## setup
  import clr
  import os
  
  clr.AddReference(os.getcwd() + '\\InheritanceTest.dll')
  import InheritanceTest
  
  ## method test
  
  base_class = InheritanceTest.BaseClass()
  base_class.Transmit() # throws a NotImplementedException as expected
  
  inherited_class = InheritanceTest.InheritedClass()
  inherited_class.Transmit() # still throws a NotImplementedException, although it should call InheritedClass.Transmit
  </code></pre>
  
  <p>I am using pythonnet version 2.3.0 and .NET Framework 4.6.1. Thanks for your help!</p>
  
  <p>Edit: This is not answered by <a href="https://stackoverflow.com/questions/1399127/difference-between-new-and-override">this question</a>. There, it is said that </p>
  
  <blockquote>
    <p>The new modifier instructs the compiler to use your child class implementation instead of the parent class implementation. Any code that is not referencing your class but the parent class will use the parent class implementation.</p>
  </blockquote>
  
  <p>which is clearly not what happens here.</p>
  
  <p>Edit 2: This seems to be a problem with the pythonnet library. <a href="https://github.com/pythonnet/pythonnet/issues/755" rel="nofollow noreferrer">The issue is now on github.</a></p>