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);