summaryrefslogtreecommitdiff
path: root/Examples/python
Commit message (Collapse)AuthorAgeFilesLines
* Warning fixes in generated Python code for 64bit Visual C++ on Windows.William S Fulton2015-07-031-3/+3
|
* Merge branch 'yazug-python_examples_pep8_whitespace_cleanup'William S Fulton2015-05-1040-325/+266
|\ | | | | | | | | | | | | * yazug-python_examples_pep8_whitespace_cleanup: Fixup 2 additional whitespace warnings pep8 found Add pep8 check for Examples/python autopep8 cleanup of Examples/python whitespace
| * Fixup 2 additional whitespace warnings pep8 foundJon Schlueter2015-05-082-2/+2
| | | | | | | | | | | | E241 multiple spaces after ',' cleanup in enum/runme.py and constants/runme.py
| * autopep8 cleanup of Examples/python whitespaceJon Schlueter2015-05-0840-323/+264
| | | | | | | | automated cleanup only of the Examples/python example code
* | Remove unused std_string.i from callback examplesWilliam S Fulton2015-05-101-2/+0
|/
* Portability fixes for python exampleWilliam S Fulton2015-04-041-2/+2
|
* PY3 fixes for import_package exampleWilliam S Fulton2015-04-047-7/+0
|
* Eliminate trivial differences between the reference examplesOlly Betts2014-11-072-9/+1
|
* Remove bogus ; after } in examplesOlly Betts2014-11-074-8/+8
|
* Bypass Python exmples not supported by -builtinWilliam S Fulton2014-10-074-6/+34
| | | | | Builtin classes as exceptions not supported, so don't run these aspects of the examples when using -builtin.
* Remove Python swigrun exampleWilliam S Fulton2014-10-076-145/+0
| | | | | | | | By default it doesn't work as it does not call the CEO's __del__ method as indicated in the comments. __del__ is called with -builtin but then the base class's __del__ is not available and so it errors out. Python 3 and -builtin goes into an endless loop. So removing as hopelessly broken.
* Display testname when running the import_packages Python examplesWilliam S Fulton2014-10-078-13/+46
| | | | For easier identification of what is running in these examples.
* Fix Python 3 import_packages/relativeimport2 example cleanWilliam S Fulton2014-10-071-9/+0
| | | | runme3.py files are generated and should not be checked in
* Small fixes to the relative import fix.Johan Hake2014-09-291-1/+2
| | | | | -- Now the tests actually runs -- Corrected the syntax for the fix in the yacc file
* Fix issue with relative import when using single header file import.Johan Hake2014-08-1223-0/+190
| | | | | | | | -- The commit propagates the package option to the newly create module node so it is recognized by SWIG -- Added a relativeimport test for this combination (in lack of py3 I was not able to test it with py3 but it "should just work")
* Fully clean Python examples and test-suiteKarl Wette2014-05-291-0/+5
|
* Fix compiler warnings in examples when using -std=c++98 -std=gnu89 -pedantic ↵William S Fulton2014-05-245-6/+6
| | | | -Wreturn-type
* Allow examples and test-suite to be built out of source treeKarl Wette2014-05-1177-245/+250
| | | | | | | | | | | | | | | | | | | | | | | - Examples/Makefile.in rules use SRCDIR as the relative source directory - ./config.status replicates Examples/ source directory tree in build directory, and copies each Makefile to build directory, prefixed with a header which sets SRCDIR to source directory - Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir - Examples/test-suite/errors/Makefile.in needs to filter out source directory from SWIG error messages - Lua: embedded interpreters are passed location of run-time test - Python: copy run-time scripts to build directory because of 2to3 conversion; import_packages example copies __init__.py from source directory; test-suite sets SCRIPTDIR to location of run-time tests - Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir can be substituted with SRCDIR; removed './' from require() statements so that NODE_PATH can be used to point Node.js to build directory
* Fix {python|perl5|ruby|tcl}/java examplesKarl Wette2014-05-022-4/+9
| | | | | | | | | | - in Lib/gcj/cni.i: remove JvAllocObject(), change JvCreateJavaVM() argument from void* to JvVMInitArgs* - in Examples/{python|perl5|ruby|tcl}/java/Makefile: pass full class name to gcjh, add Example.h as dependency, do not override CXX for compiling C++ sources - in Examples/python/java/example.i: add destructor to class to prevent memory loss complaint
* Whitespace cleanup of Example MakefilesKarl Wette2014-04-1616-23/+22
|
* Further fixes when using type() when using -builtin to include module nameWilliam S Fulton2014-03-012-0/+5
| | | | | Using type() on a builtin type should include the package and module name, see http://docs.python.org/2/c-api/typeobj.html
* Update one dead link and remove anotherOlly Betts2014-02-241-2/+1
|
* Further cleaning up of class examplesOlly Betts2014-02-241-1/+0
|
* Improve the class example for several languages.Olly Betts2014-02-234-95/+31
| | | | | Fix numerous inaccuracies in index.html (where it exists) and eliminate unnecessary differences between the example code being wrapped.
* Fix assorted comment and documentation typosOlly Betts2014-02-232-2/+2
|
* Executable bits and shebang fixesWilliam S Fulton2014-02-166-12/+0
|
* Fixed SF bug #1297 (Python imports)Paweł Tomulik2013-12-24145-0/+1381
| | | | | | | | | | | | | | | | | | | | | | | This changeset resolves several issues related to python imports. For example, it's possible now to import modules having same module names, but belonging to different packages. From the user's viewpoint, this patch gives a little bit more control on import directives generated by swig. The user may choose to use relative or absolute imports (docs are provided in separate PR). Some details: - we (still) generate import directives in form 'import a.b.c' which corresponds to absolute imports in python3 and (the only available) ambiguous one in python2. - added -relativeimport option to use explicit relative import syntax (python3), Tests are under Examples/python, these are in fact regression tests but with the current swig testing framework it seems to be impossible to put appropriate tests under test-suite. Closes #7
* Fix gcc -Waddress warning in variables examplesWilliam S Fulton2013-10-181-1/+1
|
* Use a less confusing macro name, SWIG_PYTHON_NO_DEBUG => ↵William S Fulton2013-06-118-8/+8
| | | | SWIG_PYTHON_INTERPRETER_NO_DEBUG
* Add SWIG_PYTHON_NO_DEBUG macro for building Debug wrappers against the ↵William S Fulton2013-06-118-8/+8
| | | | Python Debug dll
* Fix Python examples to compile and run under Python 3William S Fulton2013-05-264-30/+51
|
* Python examples makefiles clean target fixed and use RUNPIPE and tidyupWilliam S Fulton2013-04-1934-269/+225
|
* Fix Visual Studio examples to work when SWIG is unzipped into a directory ↵William S Fulton2013-01-158-16/+16
| | | | containing spaces.
* Added .PHONY targetsStefan Zager2011-04-071-0/+2
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12615 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Merged from branches/szager-python-builtinStefan Zager2011-04-0317-0/+366
|\ | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12596 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Accidentally added build targets.Stefan Zager2011-02-1012-1229/+0
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Added test harnessStefan Zager2011-02-1022-226/+66
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12452 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Simple test of operator overload. -builtin should shine in this test.Stefan Zager2011-02-109-0/+341
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Accidentally imported build products.Stefan Zager2011-02-1014-6908/+1
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Test operator overloads with deep hierarchy.Stefan Zager2011-02-1010-0/+7033
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Makefile tweaksStefan Zager2011-02-091-6/+4
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12445 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * A collection of performance tests. The variants we're mostStefan Zager2011-02-0928-0/+1294
| | | | | | | | | | | | | | | | | | | | | | | | interested in are: - swig run without any special parameters - swig run with -O - swig run with -builtin git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12444 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Whoops; bad importStefan Zager2011-02-0928-1294/+0
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * A place to write and run performance tests. The variants we'reStefan Zager2011-02-0928-0/+1294
|/ | | | | | | | | | | | | most interested in are: 'baseline' -- swig run without any special flags 'optimized' -- swig run with -O flag 'builtin' -- swig run with -builtin flag git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* remove weave python example - license is unclearWilliam S Fulton2010-03-066-3708/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11902 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* revert 11743 - accidental checkinWilliam S Fulton2010-01-232-8/+55
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11829 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Add caveat about using percent in varargs example as per suggestion in bug ↵William S Fulton2009-11-142-55/+8
| | | | | | #2106353 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11743 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* fix SWIG naming conventionWilliam S Fulton2009-08-211-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Merge https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-vmiklos/Miklos Vajna2009-07-221-1/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Snip nonsensical comment left over from cut and paste from other examples.Olly Betts2009-05-191-2/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11215 626c5289-ae23-0410-ae9c-e8d60b6d4f22