September, 2007

  • Haibo Luo's weblog

    IronPython: Grab the .NET Type

    • 0 Comments
    After loading the assembly by clr.AddReference and then import namespace, we are ready to take hold of types and down-level namespaces using " attribute references ". >>> import System >>> System.DateTime # type <type 'DateTime...
  • Haibo Luo's weblog

    IronPython: clr.AddReference

    • 5 Comments
    In order to interop with .NET libraries, we need first load in the assemblies we want to play with. The family of AddReference methods in the clr module serves the purpose. clr.AddReference clr.AddReferenceByName clr.AddReferenceByPartialName...
  • Haibo Luo's weblog

    IronPython: import clr

    • 0 Comments
    clr is an IronPython built-in module, which provides some functionalities in order to interop with .NET. When writing "import clr" in a python module, it means you intend to leverage the .NET libraries. One classical example is python string's methods...
Page 1 of 1 (3 items)