IronPython with Microsoft.Net
Posted by Praveen Kumar on February 11, 2008
Q: How do .NET assemblies and namespaces relate to Python modules?
In IronPython, the import mechanism provides access to the namespaces in .NET assemblies. Once the assembly is referenced by the IronPython runtime, it is possible to import the namespaces contained within the assembly. Once a namespace is imported, all nested namespaces are also accessible. For more information, see the exercise in the IronPython Tutorial (if you’re reading the FAQ on the web, the tutorial.htm document is in the tutorial directory where you installed IronPython).
>>> import System
>>> import System.Windows
>>> form = System.Windows.Forms.Form()