swig/Examples/python
William S Fulton ec2b47ef2a Remove need for Python 2to3
All Python examples and tests have been written to be both Python 2 and Python 3
compatible, removing the need for 2to3 to run the examples or test-suite.

The 2to3 executable is not always available and even when available does not
always work, e.g. with pyenv. An alternative would be to use the lib2to3 Python
module instead, but this isn't available in some older versions of Python 3.

I had this problem on Ubuntu Bionic on Travis:

  checking Examples/python/callback
  pyenv: 2to3-3.8: command not found
  The `2to3-3.8' command exists in these Python versions:
    3.8
    3.8.1

Reference issues:
  https://github.com/pypa/virtualenv/issues/1399
  https://travis-ci.community/t/2to3-command-not-found-in-venv-in-bionic/4495
2020-08-15 18:04:58 +01:00
..
callback Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
class Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
constants Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
contract Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
docstrings Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
doxygen Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
enum Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
exception Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
exceptproxy Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
extend Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
funcptr Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
funcptr2 Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
functor Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
import Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
import_packages Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
import_template Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
libffi Correct docs and examples to call SWIG_fail after setting a Python error 2016-10-23 20:16:35 +01:00
multimap Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
operator Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
performance Examples: Unify string quoting in the Python sources 2019-07-14 14:12:23 +10:00
pointer Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
reference Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
simple Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
smartptr Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
std_map Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
std_vector Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
template Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
varargs Remove use of preinst-swig script 2015-08-21 22:43:17 +01:00
variables Modify examples to be both Python 2 and 3 compatible 2020-08-15 16:46:01 +01:00
check.list Alphabetise testing of examples 2020-08-13 20:07:10 +01:00
index.html Remove need for Python 2to3 2020-08-15 18:04:58 +01:00