[IronPython] namespaces and modules in IP2
Michael Foord
fuzzyman at voidspace.org.uk
Mon Nov 10 22:25:30 CET 2008
Dan Eloff wrote:
> I'm curious about the specific use case, there's probably many ways to
> accomplish the task for which you were monkey patching the windows
> forms namespace. Is such a feature useful, or is there a reasonable
> alternative?
>
The actual use case is to test a code path that imports windows forms
inside the body of a method.
It is part of our startup code and we don't need to unconditionally
import Windows Forms for the whole module (and need to import as little
as possible at that point). Possibly moving that code into a support
module where is can be more easily tested on its own would resolve this
specific situation.
Michael Foord
> -Dan
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the Ironpython-users
mailing list