Also fixes -O.
This is a minimal change avoiding the differences in the function names
when -fastproxy is used until autodoc code is improved with doxygen
changes.
Closes#721.
Testcase has now been modified to mask the problem by providing the default parameter 'int' in:
%shared_ptr(Space::BaseDefault<short, int>)
If this is not done then d fails to convert to BaseDefault<short>&
This needs fixing in SWIG, but the problem is masked for now, so that the python
testcase works when run with the -O option.
Fixes SF bug 3333549 - %shared_ptr fixes when the type is a template using
template parameters that are typedef'd to another type.
Also fixes python -O optimization where the smart pointer conversion to the
base class needs to work because of the virtual methods that have been
optimized away.
The division operators `operator /` and `operator /=` are now
wrapped as `__truediv__` and `__itruediv__`, with alias methods
`__div__` and `__idiv__` generated for compatibility with Python 2.
This allows correct wrapping independent of the `-py3` flag, and
fixes these operators for Python 2 when using `from __future__
import division` (this was broken).
- directorargout didn't work - it used string "jresult" instead of
argument name
- java/typemaps.i didn't work with directors
- test for using java/typemaps.i in directors added
* mromberg-relative:
Python: Do not import all of sys when using -relativeimport
Add missing print statements to the Python import_packages tests
Update -relative import documentation to reflect runtime check.
> to >=
Make the check for python3 -relative does python runtime check.
* mromberg-impfix:
Examples readme file tweak
remove builtin tests as they are already covered.
Apply patch to cleanup whitespace from wsfulton
and... remove all the .py files that were copied over from the source tree.
remove -py3 related tests. Move py3 specific code to it's own module
copy everything with a .py extension into the build tree (creating dirs if needed)
debug
avoid the shell checks involving __init__.py
Something optimizes out empty files and breaks the tests. Put something in.
fix for new split module test cases.
split_wrapper -> split_modules to avoid conflict with clean rule
Add cases for tests without the -py3 flag even when PY3 is set.
Tests/Examples for the use case of splitting the wrapper. Half of the wrapper in a package and 1/2 is global.