diff --git a/Examples/test-suite/default_args.i b/Examples/test-suite/default_args.i index cd66676ac..2bbd6738d 100644 --- a/Examples/test-suite/default_args.i +++ b/Examples/test-suite/default_args.i @@ -13,11 +13,14 @@ %inline %{ #include - // All kinds of numbers: hex, octal (which pose special problems to Python), negative... + // All kinds of numbers: hex, octal (which pose special problems to Python (using %pythondefaultargs), negative... void trickyvalue1(int first, int pos = -1) {} void trickyvalue2(int first, unsigned rgb = 0xabcdef) {} void trickyvalue3(int first, int mode = 0644) {} + void doublevalue1(int first, double num = 0.0e-1) {} + void doublevalue2(int first, double num = -0.0E2) {} + // Long long arguments are not handled at Python level currently but still work. void seek(long long offset = 0LL) {} diff --git a/Examples/test-suite/python_default_args.i b/Examples/test-suite/python_default_args.i index 01c090342..f8f2072c4 100644 --- a/Examples/test-suite/python_default_args.i +++ b/Examples/test-suite/python_default_args.i @@ -1,11 +1,6 @@ %module python_default_args +// Testing use of %pythondefaultargs %pythondefaultargs; -// Turn off the feature for the tricky cases that can't be handled -%nopythondefaultargs trickyvalue3; // 'mode=0644' is okay in Python 2, but no Python 3 -%nopythondefaultargs seek; -%nopythondefaultargs Space::Klass::inc; -%nopythondefaultargs DerivedEnumClass::accelerate; - %include "default_args.i"