[Python.NET] pythonnet appdomain(s)

Adam Klein aklein at bluemountaincapital.com
Fri Nov 14 20:16:45 CET 2014


Hello,

Is there a design reason that pythonnet loads C# assemblies into its own AppDomain rather than establishing a separate AppDomain? It would be useful for instance when developing in C# in parallel with writing python code (say, in the ipython REPL) to be able to reload C# assemblies dynamically.

Also, we've found it useful in Initialize() to enable shadow copying, to prevent file locking, ie

        internal static void Initialize() {
...

            AppDomain domain = AppDomain.CurrentDomain;

            // prevent file locking
            domain.SetShadowCopyFiles();
            domain.SetShadowCopyPath(null);

Although these are deprecated methods, and really it should be establishing a new AppDomain as above.

Regards,
  Adam

_________________________________
Adam D Klein
BlueMountain Capital Management LLC
280 Park Ave, 5th Floor East
New York, NY 10017
O:(212)905-2136
C:(917)331-8871

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20141114/5eed006c/attachment.html>


More information about the PythonDotNet mailing list