William S Fulton
a01e8474f6
Fixing setting this in Python when using __slots__
...
Don't attempt to use the class's __dict__ for setting 'this' when
a user has extended a class with:
__slots__ = ['this'].
Was segfaulting. Now we fall back to a simple PyObject_SetAttr if the
usual approach to setting 'this' in __dict__ does not work.
Closes #1673 Closes #1674
2020-02-06 07:08:16 +00:00
William S Fulton
95e8643d70
Rename func to funk in tests to avoid Go keyword problems
2017-06-16 19:24:48 +01:00
Alec Cooper
b45164e098
Support python(pre|ap)pend on static methods in classic mode
...
Adding a test that covers this case to the python_append test-suite
Note: staticmethod function has been available since Python 2.2
2016-02-04 15:27:54 -05:00
William S Fulton
0fb34cb019
Disable test not relevant for Python -builtin
2014-10-01 07:57:23 +01:00
Julien Schueller
7a4cef998c
Enable pep8 check
2014-06-07 13:10:27 +02:00
William S Fulton
d0af4f50d3
Add %pythonbegin directive.
...
For adding code at the beginning of the generated .py file.
2013-07-05 06:30:16 +01:00
William S Fulton
1c44078751
Improve testing of %pythonprepend and %pythonappend
2013-07-02 20:00:17 +01:00
Haoyu Bai
afd67f8c67
Fix SF#2552488: indentation adjust of %pythonappend and %pythonprepend
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 14:37:54 +00:00