Merge from renshawbay/pythonnet by tonyroberts · Pull Request #78 · pythonnet/pythonnet
and others added 30 commits
September 15, 2014 13:04… {}" blocks to setup the python interpreter and take/release the GIL, and Py.kw("key1", value1, "key2", value2, ...) to add keyword arguments.
This means that python functions can be called directly, members can be accessed as normal (a.b) and mathematical operations work, and run in python (a = b*c).
…rpreter hasn't initialized them, otherwise attempting to dereference objects in finalizers called by the concurrent GC will fail. - Dispose of PyObject instances after use in CreateSubType rather than wait for the GC - Don't try and dereference derived class instances after python has shutdown if called from the GC
modules behave better in ipython (%autoreload expects __file__ to be set and the ipython help ? expects __class__ to be set).
unknown and others added 28 commits
January 28, 2015 13:28Imported modules should be added to sys.modules. When importing something like 'CLR.X' the clr module should be returned, not X.
Mono doesn't observe the rpath set when the lib is built, so get the folder the Python shared object has been loaded from and add that to LD_LIBRARY_PATH. Without this, if there are multiple Pythons installed the wrong object can be loaded.
The npython binary was a workaround to be able to use pythonnet on Linux. This is no longer necessary as the clr module can be imported directly from the standard Python interpreter.
tonyroberts added a commit that referenced this pull request
Jun 26, 2015Merge from renshawbay/pythonnet Fixes #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters