[Python.NET] from CLR.mynamespace import * doesn't work
brian at zope.com
Tue Mar 22 15:54:48 CET 2005
> from CLR.mynamespace import * doesn't work.
> I have to import every class manually.
> Any hint?
This purposely doesn't work, as it would impose a pretty big
performance hit and a lot of extra complexity in the PythonNet
runtime. I just noticed that I hadn't documented that in the
README though - I've updated it for the next release.
If this is a significant issue for enough people, it might be
worth revisiting, but as I recall supporting the '*' form
introduces a lot of strange and unexpected side effects with
regard to module loading, since an assembly can contribute
names to multiple 'modules' from Python's point of view,
unlike pure Python modules.
> Note: would'it be worth opening a bugzilla-like system for pythondotnet?
There is a bug tracker at:
Brian Lloyd brian at zope.com
V.P. Engineering 540.361.1716
Zope Corporation http://www.zope.com
More information about the PythonDotNet