Yes, it is out of date. When you did help(sre) , you should have seen this line:
DESCRIPTION This file is only retained for backwards compatibility. It will be removed in the future. sre was moved to re in version 2.5.
Therefore, it is used for code that is designed for Python <2.5, but now it is being replaced by re .
In addition, it has been removed:
# Python 3 >>> import sre Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'sre'
source share