Tony Roberts
686eba2944
add unit tests to check python classes can derive from C# interfaces
2014-09-15 13:07:05 +01:00
Tony Roberts
7417342ae0
get the constructors from the base class rather than the type when
...
building a derived class, as the type could be an interface
2014-09-15 13:07:05 +01:00
Tony Roberts
93e9ba34bc
fix derived types so managed classes can be declared in python by
...
subclassing interfaces
2014-09-15 13:07:04 +01:00
Tony Roberts
f9109a09a0
allow base class methods to be called from derived classes either from the
...
class directly or using super
2014-09-15 13:07:04 +01:00
Tony Roberts
471673a1fa
don't convert IEnumerables to python lists unless nothing else matches
...
(strings shouldn't be converted to lists, for example)
2014-09-15 13:07:03 +01:00
Tony Roberts
f3ff88d5ab
merge from patstew-master
2014-09-15 13:07:03 +01:00
Tony Roberts
95f123ce1d
- Ensure python threads are always initialized, even if the main interpreter 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
2014-09-15 13:07:02 +01:00
Tony Roberts
7e0226ff51
creating instances of classes that are managed types sub-classed in python from managed code now works
2014-09-15 13:07:02 +01:00
Tony Roberts
2b3868f32d
managed types can now be subclassed in python and override virtual methods
2014-09-15 13:06:08 +01:00
Zane D. Purvis
69d99332dc
Add missing ) so sample code in README works
2014-09-15 13:04:54 +01:00
patstew
11bc13a0b4
Update README.md
2014-09-15 13:04:53 +01:00
patstew
2b1d8253b1
Fix readme formatting.
2014-09-15 13:04:53 +01:00
patstew
eebe879fdf
Create README.md
2014-09-15 13:04:52 +01:00
Patrick Stewart
0bd8c47f9b
Use the c# dynamic functionality for python objects.
...
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).
2014-09-15 13:04:52 +01:00
Patrick Stewart
e6eac73f77
Add convenience functions to new Py class. Supports "using (Py.GIL()) {}" blocks to setup the python interpreter and take/release the GIL, and Py.kw("key1", value1, "key2", value2, ...) to add keyword arguments.
2014-09-15 13:04:52 +01:00
Patrick Stewart
25481afdc1
Add more of the PyNumber API to support mathematical operations.
2014-09-15 13:04:51 +01:00
Patrick Stewart
f62eb634ff
Update c# project
2014-09-15 13:04:51 +01:00
Patrick Stewart
3f2f6774d1
Convert IEnumerables to python lists.
2014-09-15 13:04:50 +01:00
David Lechner
acb1fac54d
Fix crash because Python 3 C API does not have PyNumber_Int
2014-09-15 13:04:50 +01:00
Tony Roberts
8134b3390a
add Python 3 support
2014-09-15 13:04:49 +01:00
Tony Roberts
695663815c
Merge pull request #52 from leith-bartrich/develop
...
removed an errant monodevelop .userprefs file and added *.userprefs to ....
2014-09-12 16:31:40 +01:00
Bradley Friedman
532a4da6c0
removed an errant monodevelop .userprefs file and added *.userprefs to .gitignore
2014-09-11 20:23:01 -04:00
Tony Roberts
b570205f58
Merge pull request #50 from tonyroberts/develop
...
Fixes #48 and #49
2014-06-09 16:57:40 +01:00
Tony Roberts
532f0b7e2e
Include directories from config var DESTDIRS in npython's runtime library dirs for python built with --enable-shared.
2014-06-05 16:42:02 +01:00
Tony Roberts
da2bb408ab
Look for an assembly that's already loaded before trying to load it from a file.
...
This fixes problems when trying to import pre-loaded assemblies that are embedded as resources.
2014-06-05 16:41:46 +01:00
Tony Roberts
39fee54c9f
Revert "Use Assembly.Load(Byte[]) instead of Assembly.LoadFrom."
...
This reverts commit b65fa30c7b
.
2014-06-05 11:08:48 +01:00
Tony Roberts
0416fdae37
Merge pull request #45 from tonyroberts/develop
...
Add manifest to npython to load the same c runtime as the python.exe used to build it.
fixes #43
2014-04-12 13:21:48 +01:00
Tony Roberts
8f45bedb26
Add manifest to npython to load the same c runtime as the python.exe used to build it.
2014-04-12 13:06:11 +01:00
David Anthoff
820cae35f3
Update paths in .gitignore
2014-04-11 15:44:17 -07:00
David Anthoff
4eebfe99ae
Merge pull request #42 from pythonnet/movethingstorootfolder
...
Move things from the pythonnet folder to root
2014-04-11 15:17:36 -07:00
David Anthoff
3278ce9afd
Make CI work with setup.py in root folder
2014-04-11 14:57:56 -07:00
David Anthoff
d4882688df
Move everything from pythonnet folder to root folder
...
Main reason is that setup.py should be in root.
2014-04-11 14:34:26 -07:00
Tony Roberts
fba7586440
Merge pull request #41 from tonyroberts/develop
...
merge changes to get npython working again on windows
fixes #39
2014-04-11 15:21:26 +01:00
Tony Roberts
56bebfab89
add C:\Python to PATH
2014-04-11 15:09:19 +01:00
Tony Roberts
b65fa30c7b
Use Assembly.Load(Byte[]) instead of Assembly.LoadFrom.
2014-04-11 14:50:34 +01:00
Tony Roberts
dfdcfe7ed0
Use the assembly short name to find the embedded Python.Runtime (other assemblies may reference it with the full name).
2014-04-11 11:37:10 +01:00
Tony Roberts
2b11631a5c
make sure the GIL is released in ThreadTest
2014-04-11 11:01:37 +01:00
Tony Roberts
10a2f8f661
Reference the assembly loader in the Main method to stop it being optimized away, and don't reload assemblies once they're already loaded.
2014-04-11 09:59:51 +01:00
Tony Roberts
0ac66b3154
Merge pull request #38 from tonyroberts/develop
...
embed Python.Runtime.dll in nPython
fixes #26
2014-04-10 11:48:27 +01:00
Tony Roberts
f630a5a7eb
embed Python.Runtime.dll in nPython
2014-04-10 11:41:59 +01:00
Tony Roberts
d97616d05b
Merge pull request #37 from tonyroberts/develop
...
Move the implicit loading deprecation warning into LoadImplicit
2014-04-09 17:57:56 +01:00
Tony Roberts
b123d58326
Move the implicit loading deprecation warning into LoadImplicit and use
...
the assembly location in the warning instead of the namespace.
Update test to check for the implicit loading warning.
2014-04-09 17:32:18 +01:00
David Anthoff
12b0a776a4
Create README.md
2014-03-19 15:08:48 -07:00
David Anthoff
d77ca71d05
Merge pull request #32 from pythonnet/enabletestsappveyor
...
Run tests on appveyor
2014-03-19 11:56:19 -07:00
David Anthoff
69981e2538
Run tests on appveyor
2014-03-19 11:50:57 -07:00
David Anthoff
6e20111a36
Merge pull request #31 from pythonnet/removenugetfromappveyor
...
Remove call to NuGet restore from appveyor configuration
2014-03-19 11:48:07 -07:00
David Anthoff
74fb918d32
Remove call to NuGet restore from appveyor configuration
2014-03-19 11:35:56 -07:00
David Anthoff
78f361f81b
Merge pull request #30 from pythonnet/appveyorfix
...
Fix appveyor problem with python 2.7.6 x86
2014-03-19 11:33:48 -07:00
David Anthoff
6d284cc8be
Fix appveyor problem with python 2.7.6 x86
2014-03-19 10:02:01 -07:00
Tony Roberts
0863a61a32
Merge pull request #29 from tonyroberts/develop
...
simplify how the nuget packages are installed
2014-03-19 16:46:24 +00:00