In IronPython 2.7.1, I can import some .NET assemblies by name:
>>> from System.Collections import *
>>> from System.IO import *
Others give me an error:
>>> from System.Xml import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Xml
Doing the following fixes the error:
>>> import clr
>>> clr.AddReferenceByPartialName('System.Xml')
>>> from System.Xml import *
Why do I have to call clr.AddReferenceByPartialName for some assemblies but not others?