summaryrefslogtreecommitdiff
path: root/Examples/python/variables
Commit message (Collapse)AuthorAgeFilesLines
* Adjust Python variables example for Python 2Olly Betts2022-03-151-1/+1
| | | | | Explicitly call str() as previously Python 2 seemed to end up calling repr().
* List variables in variables exampleOlly Betts2022-03-151-1/+3
| | | | | Seems useful in itself, but also serves to check if https://sourceforge.net/p/swig/bugs/976/ is still reproducible.
* Modify examples to be both Python 2 and 3 compatibleWilliam S Fulton2020-08-151-29/+29
| | | | For removing dependency on 2to3
* Misc. typosluz.paz2018-05-171-1/+1
| | | found via `codespell` and `grep`
* Fix pycodestyle 'E722 do not use bare except'William S Fulton2017-12-311-2/+2
|
* Fix some typos in docs and examples and make the code look nicer.sunoru2016-12-311-1/+1
|
* Remove use of preinst-swig scriptWilliam S Fulton2015-08-211-3/+6
| | | | | | | | | | | | | Complete the prototype removal in ca1431. The script prevents SWIGTOOL=gdb from working as gdb can't be used to debug a shell script, it requires a binary. Add support for SWIGTOOL in all the examples. SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles. See issue #473.
* autopep8 cleanup of Examples/python whitespaceJon Schlueter2015-05-081-21/+18
| | | | automated cleanup only of the Examples/python example code
* Fix compiler warnings in examples when using -std=c++98 -std=gnu89 -pedantic ↵William S Fulton2014-05-241-2/+2
| | | | -Wreturn-type
* Allow examples and test-suite to be built out of source treeKarl Wette2014-05-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | - 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 gcc -Waddress warning in variables examplesWilliam S Fulton2013-10-181-1/+1
|
* Python examples makefiles clean target fixed and use RUNPIPE and tidyupWilliam S Fulton2013-04-191-8/+7
|
* Merged the Python 3.0 support branch. The merging progress is not so smooth, ↵Haoyu Bai2008-09-111-0/+1
| | | | | | | | | | | | | so hope this commit won't make anything broken. This is the (incomplemete) log produced by svnmerge.py: Merged revisions 10405-10409,10420-10422,10426,10438,10445,10451,10454-10465,10467,10473-10475,10485,10488-10489,10493-10495,10497,10509-10510,10513-10514,10517,10520,10525,10528-10529,10533-10535,10554-10557,10570,10573,10593,10614,10666-10669,10673,10678,10687,10690,10704-10706,10731,10744,10750-10752,10755,10759,10770,10775-10776,10813,10819 via svnmerge from https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-bhy git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove cvs $Header$William S Fulton2007-10-171-3/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10005 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove cvsignore files: this is stored on svn:igonre property nowJohn Lenz2006-12-031-14/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* *** empty log message ***William S Fulton2006-11-201-0/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Correct some commentsWilliam S Fulton2006-07-041-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9185 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* remove sprintf deprecated messageWilliam S Fulton2006-03-051-0/+5
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* add support for named warning codesMarcelo Matus2006-01-061-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* silence new leak warningsMarcelo Matus2006-01-051-0/+2
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* use preinst-swig in all the examplesMarcelo Matus2005-11-081-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* fix extern declarationsWilliam S Fulton2005-06-281-3/+8
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Test const char [] instead of const char *William S Fulton2004-06-153-4/+2
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5992 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* - recover the proper catching exception mechanism for classesMarcelo Matus2004-01-211-1/+2
| | | | | | | | | | | | | | | (throw typemap). - fix the examples with exception problems and warnings - proper and consist treatment of basic types (short, unsigned char,...) now all are checked for range and sign. Before, this was depending of the use of parsing or no parsing, and/or the converter method, and/or the use of directors, etc. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5659 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* .cvsignoreWilliam S Fulton2004-01-201-0/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5653 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Warning fixesWilliam S Fulton2004-01-071-2/+2
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* VC++ pollutionWilliam S Fulton2003-02-251-0/+3
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* The great mergeDave Beazley2002-11-305-8/+18
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* various updatesDave Beazley2000-12-241-2/+2
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* New exampleDave Beazley2000-08-306-0/+332
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@742 626c5289-ae23-0410-ae9c-e8d60b6d4f22