]> gerrit.simantics Code Review - simantics/python.git/log
simantics/python.git
7 years agoPrint exception type name if we can't get a traceback. 00/300/2
Timo Korvola [Mon, 30 Jan 2017 15:58:18 +0000 (17:58 +0200)]
Print exception type name if we can't get a traceback.

Also decref PyErr_Fetch results.

Change-Id: I3e497d6750b08e24a9631c83a2b6e0e3c1502d79

7 years agoAll getters now use GIL as well. 99/299/1
Timo Korvola [Mon, 30 Jan 2017 14:27:13 +0000 (16:27 +0200)]
All getters now use GIL as well.

More macro madness.  Hopefully locking is now OK.

Change-Id: I3f487cc74154574032492b9dd5c4f46b27ee7a4e

7 years agoAll variable setters now use GIL. 98/298/1
Timo Korvola [Mon, 30 Jan 2017 09:13:48 +0000 (11:13 +0200)]
All variable setters now use GIL.

Most setters are now defined by a CPP macro.  It is not pretty and may
well be the ugliest way to do this except for the one it replaces.

Change-Id: I27d36bfef6252f78ee801ebbc022d6fe75a3b49c

7 years agoAdd some PyEval_{Restore,Save}Thread calls. 97/297/1
Timo Korvola [Fri, 27 Jan 2017 14:04:24 +0000 (16:04 +0200)]
Add some PyEval_{Restore,Save}Thread calls.

More are needed, but it is a mess of copy-paste programming.

Change-Id: Ie4dcc7627349cab84c37cb0b6c7275876373e25d

7 years agoUse the executor for all Python C API calls. 96/296/1
Timo Korvola [Fri, 27 Jan 2017 13:44:49 +0000 (15:44 +0200)]
Use the executor for all Python C API calls.

Change-Id: I4330f5aea0bdd4bada6c0fd24798d726df563861

7 years agoMacro for Python installation directory. 95/295/1
Timo Korvola [Thu, 26 Jan 2017 13:41:23 +0000 (15:41 +0200)]
Macro for Python installation directory.

Change-Id: I0b33d3f237075b8788a565209306527e84b05268

7 years agoGet Python traceback output in the messages of exceptions from the pythonlink feature.
tuorjr [Thu, 1 Dec 2016 16:31:57 +0000 (16:31 +0000)]
Get Python traceback output in the messages of exceptions from the pythonlink feature.

git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1703 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

7 years agoRemoved unnecessary python3.dll dependency.
tuorjr [Tue, 1 Nov 2016 15:19:38 +0000 (15:19 +0000)]
Removed unnecessary python3.dll dependency.

git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1700 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

7 years agoDeleted error logs from JVM crashes.
tuorjr [Wed, 12 Oct 2016 11:52:49 +0000 (11:52 +0000)]
Deleted error logs from JVM crashes.

git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1696 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

7 years agoAddition of null value check to getPythonObject()
tuorjr [Tue, 11 Oct 2016 10:56:12 +0000 (10:56 +0000)]
Addition of null value check to getPythonObject()
Test with new databoard SCL functionality

git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1695 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

7 years agoAdded support for dynamically typed data access and a Variable interface.
tuorjr [Tue, 4 Oct 2016 16:22:17 +0000 (16:22 +0000)]
Added support for dynamically typed data access and a Variable interface.
Note: Proper function of the Variable interface depends on enhancement #6738.

git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1694 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

7 years agoAdded C source code for the DLL and a CDT project aspect for compiling it.
tuorjr [Wed, 28 Sep 2016 10:16:20 +0000 (10:16 +0000)]
Added C source code for the DLL and a CDT project aspect for compiling it.

git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1693 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

7 years agoSome changes to Python.scl.
tuorjr [Wed, 28 Sep 2016 10:14:22 +0000 (10:14 +0000)]
Some changes to Python.scl.

git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1692 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

7 years agoAdded lauchers for test cases.
tuorjr [Mon, 26 Sep 2016 15:55:11 +0000 (15:55 +0000)]
Added lauchers for test cases.

git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1691 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

7 years agoSome fixes to Python integration.
tuorjr [Mon, 26 Sep 2016 15:44:59 +0000 (15:44 +0000)]
Some fixes to Python integration.

git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1690 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

7 years agoInitial commit of Python Integration feature.
tuorjr [Mon, 26 Sep 2016 15:33:15 +0000 (15:33 +0000)]
Initial commit of Python Integration feature.

git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1689 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952

9 years agogit-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1627 e36c2e66...
tuorjr [Tue, 24 Nov 2015 10:25:22 +0000 (10:25 +0000)]
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1627 e36c2e66-7d30-0410-bdb2-d9e1f5a6d952