I saw the IronPython mailing list documentation that describes how to write an extension module in C #. I was able to follow the documentation and everything works fine. However, does anyone know how to make creating a hierarchical PACKAGE extension in C #? For example, you should do something like this for a module:
[assembly: PythonModule("my_module", typeof(test.MyModule))]
namespace test
{
public static class MyModule
{
public static void hello_world()
{
Console.WriteLine("hello world");
}
}
but how would you create a module called testme UNDER my_module, which you would import as follows:
from my_module import testme
A short example or a gentle push in the right direction would be great!
source
share