wmayer
56c92d1198
Fix generation and build of python classes for 3.8
2021-04-27 14:35:34 +02:00
markus
d6fa0b1d18
Fix generation and build of python classes for 3.9
2021-04-27 00:41:53 +02:00
wmayer
c563198b35
Base: remove some more deprecated Py2 code
...
and remove deprecated void from function signature and replace 0 or NULL with nullptr
2021-04-26 10:29:48 +02:00
wmayer
dbbac56185
Base: do not report C++ exception when converting it to Python exception
...
See https://forum.freecadweb.org/viewtopic.php?f=23&t=56464
2021-04-11 14:54:11 +02:00
wmayer
2f7e432051
Py3: suppress warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
...
If the tp_print slot is not set the warning -Wmissing-field-initializers is raised. If it's set then -Wdeprecated-declarations is raised.
So, the only way is to suppress it.
2020-10-15 17:07:39 +02:00
wmayer
c6374bc102
Py3: fix warning: missing field 'tp_print' initializer [-Wmissing-field-initializers]
...
This warning is only specific to Py3.8. See https://docs.python.org/3/c-api/typeobj.html
2020-10-15 10:35:47 +02:00
wmayer
0b1a2bf223
Py3.8: missing initializer for member '_typeobject::tp_vectorcall' [-Wmissing-field-initializers]
2020-06-08 14:32:21 +02:00
luz.paz
97e11fadac
Fix typo in templateClassPyExport.py [skip ci]
2019-12-23 16:50:23 +01:00
wmayer
065356281d
Python: change generation of callback functions for class or static methods
2019-12-19 17:55:12 +01:00
wmayer
7f7a573ace
handle nested name spaces in Python generation script
2019-11-20 22:57:58 +01:00
wmayer
76f76f02dd
add support of static and class methods in Python wrappers
2019-11-12 23:24:42 +01:00
Zheng, Lei
812aea7262
Tools: modify exception catch implemention in templateClassPyExport
2019-08-28 17:46:07 +02:00
wmayer
1106404b1e
implement true divide handler of the number protocol for Quantity
2018-10-27 15:27:27 +02:00
wmayer
5df6090150
Make destructors of all generated Py class protected
...
This is to avoid to create an object on the stack and thus to clutter Python's reference counting mechanism
2018-09-19 18:22:22 +02:00
luz.paz
360e581672
Misc. typo and whitespace fixes
...
ref: https://forum.freecadweb.org/viewtopic.php?f=3&t=30988#p256964
along with other misc. fixes
2018-09-19 17:26:03 +02:00
Michal Ulianko
2e2b8cba6a
py3.7 fix
...
PyUnicode_AsUTF8() returns const char* in py3.7 instead of char*. Making
changes to reflect that which should also be safe in
other Python versions.
2018-09-01 22:44:39 +02:00
wmayer
1cd894bacc
fix -Wcast-function-type
2018-08-19 13:11:08 +02:00
looooo
088b2687ea
win: pybind11: workaround for strdup
2018-04-23 09:56:23 +02:00
wmayer
5520c1a92f
fix generation script of Python wrapper
2017-11-16 14:30:39 +01:00
luzpaz
f3bf8fe919
Misc. typos
...
+ some are doxy others are just comment code.
+ some minor whitespace and grammatical tweaks.
+ app/SCL/* typos have also been submitted upstream (https://github.com/stepcode/stepcode/pull/366 ). So it's ok to merge them in to master.
2017-10-04 17:59:11 +02:00
wmayer
f300614729
Py3: replace sq_slice and sq_ass_slice with mp_subscript and mp_ass_subscript because they are not used any more in Py3
2017-08-21 13:33:07 +02:00
Abdullah Tahiri
f4fd0d6b71
Generator script modified to first report and then ask for the python representation, so as keep track of the reported status
2017-08-17 22:47:14 +02:00
wmayer
f07234bf28
py3: support of Python 3.4
2017-06-07 15:28:46 +02:00
wmayer
bf162ebde9
py3: partially revert of getattr -> getattro because getattro is only needed for the static callback function
...
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
6ad7dc1217
py3: change of getattr -> getattro
...
issue 0000995
2017-06-03 10:51:05 +02:00
wmayer
3c85aaf0df
remove const from exception handler to fix build failure
2017-05-13 17:33:13 +02:00
Abdullah Tahiri
f4c0f0acae
Renaming getPyDict to getPyObject for consistency with BaseClass
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
3a27e2d8ff
Enable exceptions to save/restore information in a python dictionary and enable throwing exception from dictionary information
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
7049881d47
Use PyErr_setObject with a PyDict to set Base::Exception information to BaseFreeCADError Python exception
2017-05-13 15:27:57 +02:00
wmayer
7150e9ab23
replacement for PR 698
2017-04-27 23:05:40 +02:00
Kunda
5aefa825b1
Typo fixes for doxygen and source comments
...
issue #0002914
2017-03-31 11:25:57 -03:00
wmayer
7630e6bc2b
make sure that the passed 'self' pointer to a method of the Python wrapper is never null
2017-01-24 12:34:23 +01:00
wmayer
0031e13953
extend generation framework to set Python class name
2016-12-03 12:50:36 +01:00
wmayer
2478c9847b
fix bug in generation script
2016-10-08 18:48:27 +02:00
wmayer
f1127dd2f4
Fix issues:
...
+ improve formatting
+ remove superfluous semicolons
+ comment unused parameters
+ rename Initialisation to Initialization
+ rename Deinitialisation to Finalization
+ remove spaces
2016-10-08 12:48:34 +02:00
Stefan Tröger
88484d7054
Extensions: Allow them to be added dynamically
2016-10-08 12:48:34 +02:00
Stefan Tröger
552fe52774
Extensions: Show up in the python interface
2016-10-08 12:48:34 +02:00
wmayer
d88ecd5f56
fix -Wunused-parameter
2016-09-23 16:37:12 +02:00
wmayer
39e589a4d7
fix -Wextra in FreeCADBase
2016-09-21 15:02:02 +02:00
wmayer
24815ac196
+ remove Py_TPFLAGS_BASETYPE flag for all generated Python bindings because they can't be sub-classed in Python
2015-10-12 19:59:58 +02:00
wmayer
6b67d4a4e7
+ replace old C casts with static_cast in generated C++ code, remove unused parent structure of Python classes, support of -1 as return value of setCustomAttributes
2015-09-27 22:08:08 +02:00
wmayer
9fb670ae16
+ fixes #0001794 : new defined as a macro sometimes conflicts with boost
2014-10-22 12:39:43 +02:00
Sebastian Hoogen
d49528b27e
issue #1700 replace PyExc_Exception
2014-09-17 11:15:57 +02:00
wmayer
ed4729dac1
+ extend number protocol
2014-02-14 13:53:47 +01:00
wmayer
8c354c7635
+ extend number protocol
2014-02-14 13:45:56 +01:00
wmayer
438b6d4681
+ extend number protocol
2014-02-14 12:46:30 +01:00
wmayer
c6baed84bf
+ make float assignment more pythonic
2013-10-08 12:54:20 +02:00
wmayer
583e8bddde
Support non-ASCII characters in build path
2013-03-07 17:26:01 +01:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00