-
Notifications
You must be signed in to change notification settings - Fork 749
Merge from renshawbay/pythonnet #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Contributor
tonyroberts
commented
Jun 26, 2015
- Python 3 support
- Managed types can be sub-classed in Python and have virtual methods overridden.
- Uses dynamic objects for cleaner code when embedding Python
- Better Linux support (work with or without --enable-shared configure option)
… {}" 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).
…ython from managed code now works
…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
(strings shouldn't be converted to lists, for example)
…m the class directly or using super
subclassing interfaces
building a derived class, as the type could be an interface
modules behave better in ipython (%autoreload expects __file__ to be set and the ipython help ? expects __class__ to be set).
once Py_Finalize has started.
…or Py_SetPythonPath
reflected back into .NET. Added decorators 'clrproperty' and 'clrmethod' to the clr module which are used to declare which properties and methods should be reflected, and to supply the .net argument and return types.
Pull latest from pythonnet/pythonnet
Imported modules should be added to sys.modules. When importing something like 'CLR.X' the clr module should be returned, not X.
Copy and paste bug.
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.
Add travis-ci build status.
Fixes for OSX.
… pythonnet-develop Conflicts: setup.py
Update prior to merging back into the main repo.
tonyroberts
added a commit
that referenced
this pull request
Jun 26, 2015
Merge from renshawbay/pythonnet Fixes #12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.