Commit Graph

11 Commits

Author SHA1 Message Date
William S Fulton 90cdbee6a6 Python -builtin fix wrapping constructors with varargs
Fix compilation error when using -builtin and wrapping varargs in constructors

Closes #1942
2021-03-23 23:57:49 +00:00
William S Fulton d4ffa46f41 Convert python tests using 2to3
These tests were converted using 2to3 and should be valid using
Python 2.7 and Python 3+.
2020-08-15 00:16:04 +01:00
William S Fulton fd651ff4e2 Overloaded C++ function Python wrappers now raise a TypeError instead of NotImplementedError
Occurs when the types passed are incorrect. This change means
there is now consistency with non-overloaded function wrappers which have always
raised TypeError when the incorrect types are passed.

See issue #1293
2018-08-10 08:14:12 +01:00
Jon Schlueter b77f3afafb autopep8 cleanup of Examples/test-suite/python
automated cleanup of python pep8 whitespace compliance
2015-05-08 21:35:52 -04:00
William S Fulton 74aa3f218f %varargs - better documentation and remove additional argument generation which didn't work properly as a sentinel
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-14 00:13:43 +00:00
William S Fulton cba65bd524 revert 12657 - incorrect changes made
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12658 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-06 21:10:01 +00:00
William S Fulton 769b26d575 Fix %varargs when used with a numerical argument, which was emitting one more optional argument than documented
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12657 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-06 20:56:42 +00:00
Marcelo Matus 69a93825ac add def arg case, as mentioned in the manual
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7068 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-15 07:48:21 +00:00
Marcelo Matus 4701fe46c4 add def arg case, as mentioned in the manual
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7067 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-15 07:40:29 +00:00
William S Fulton 437e503be9 more varargs runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-19 20:50:54 +00:00
Dave Beazley 048281b9f8 new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-04 16:15:09 +00:00