Revert introduction of python:defaultargs feature

See issue #294
This commit is contained in:
William S Fulton 2015-01-12 21:35:47 +00:00
commit 9d87b9f099
7 changed files with 29 additions and 55 deletions

View file

@ -13,7 +13,7 @@
%inline %{
#include <string>
// All kinds of numbers: hex, octal (which pose special problems to Python (using %pythondefaultargs), negative...
// All kinds of numbers: hex, octal (which pose special problems to Python), negative...
void trickyvalue1(int first, int pos = -1) {}
void trickyvalue2(int first, unsigned rgb = 0xabcdef) {}
void trickyvalue3(int first, int mode = 0644) {}
@ -23,6 +23,10 @@
// Long long arguments are not handled at Python level currently but still work.
void seek(long long offset = 0LL) {}
void seek2(unsigned long long offset = 0ULL) {}
void seek3(long offset = 0L) {}
void seek4(unsigned long offset = 0UL) {}
void seek5(unsigned long offset = 0U) {}
// Anonymous arguments
int anonymous(int = 7771);

View file

@ -58,7 +58,6 @@ CPP_TEST_CASES += \
primitive_types \
python_abstractbase \
python_append \
python_default_args \
python_director \
python_nondynamic \
python_overload_simple_cast \

View file

@ -1,3 +0,0 @@
# Test %feature("python:defaultargs") using the test code in default_args_runme.py (which does not use the feature)
import default_args_runme
default_args_runme.run('python_default_args')

View file

@ -1,6 +0,0 @@
%module python_default_args
// Testing use of %pythondefaultargs
%pythondefaultargs;
%include "default_args.i"