William S Fulton
826f1448b8
Fix Python low-level static member setters.
...
The low-level API for setting static member variables stopped working
when the fastunpack option was turned on by default. The PyMethodDef
setup requires METH_O, not METH_VARARGS with fastunpack.
2019-03-20 21:44:34 +00:00
William S Fulton
2bb5eeef91
Improve Python static member variable testing
...
Double check the values are being set in the C++ layer via a function call to C++ layer.
2019-03-20 21:10:28 +00:00
Olly Betts
728b8955bd
Drop support for Python classic classes
...
There were only needed to support Python < 2.2, and we now require at
least Python 2.6.
Conflicts:
.travis.yml
Examples/test-suite/python/autodoc_runme.py
Source/Modules/python.cxx
This is a cherry-pick and merge from patch in #1261
2018-10-12 07:10:47 +01:00
William S Fulton
9135ad72e2
Additional static member variable testing for Python
2016-10-14 07:30:44 +01:00
William S Fulton
cc7319f52f
Replace assert from Python testcases with code that always runs.
...
assert code is sometimes not executed, eg when running python -O.
2016-06-19 20:11:51 +01:00
Jon Schlueter
b77f3afafb
autopep8 cleanup of Examples/test-suite/python
...
automated cleanup of python pep8 whitespace compliance
2015-05-08 21:35:52 -04:00
William S Fulton
76bcec1d87
Test-suite fixes for python -classic
...
These are mostly workarounds for static class members not being supported for
old style classes, as documented in Python.html, "C++ classes".
2015-01-31 15:04:35 +00:00
Haoyu Bai
be7fdab62e
Fix SF#2552048. Remove the 'self' parameter in Python proxy code for static member function.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 13:38:39 +00:00