SWIG Python Examples

The following examples illustrate the use of SWIG with Python.

Compilation Issues

Compatibility

For Python 3, set the environment variable PY3=1. This will ensure the 2to3 program is run prior to running any example.

Your mileage may vary. If you experience a problem, please let us know by contacting us on the mailing lists.