Swig 4.1.1 no longer checks the python version

Lluís Alemany Puig <[email protected]> Wed, 24 May 2023 10:46:13 +0200
Newsgroups gmane.comp.programming.swig
Message-ID <[email protected]>
Hello

I just noticed that swig 4.0.2 includes a check of python's version at 
the beginning of every script, like so:

    # This file was automatically generated by SWIG (http://www.swig.org).
    # Version 4.0.2
    #
    # Do not make changes to this file unless you know what you are
    doing--modify
    # the SWIG interface file instead.

    from sys import version_info as _swig_python_version_info
    if _swig_python_version_info < (2, 7, 0):
         raise RuntimeError("Python 2.7 or later required")

    # Import the low-level C/C++ module

However, swig 4.1.1 no longer does it:

    # This file was automatically generated by SWIG (https://www.swig.org).
    # Version 4.1.1
    #
    # Do not make changes to this file unless you know what you are
    doing - modify
    # the SWIG interface file instead.

    from sys import version_info as _swig_python_version_info
    # Import the low-level C/C++ module

Is this a bug, or was this removed on purpose?

Thanks a lot,

Lluís.

_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user