Staging
v0.5.1
https://github.com/python/cpython
Revision ef2b2f437e7160ea68d8087df43c069fa6534fb0 authored by Martin Panter on 13 November 2015, 22:47:00 UTC, committed by Martin Panter on 13 November 2015, 22:47:00 UTC
Previously it was called another time via hasattr(), and both calls were
made once for dir(f) and again for dir(f.__class__).  This includes a
backport of changing from a list to a set from revision 4dbb315fe667.
1 parent c0fdd82
Raw File
Tip revision: ef2b2f437e7160ea68d8087df43c069fa6534fb0 authored by Martin Panter on 13 November 2015, 22:47:00 UTC
Issue #25590: Make rlcompleter only call getattr() once per attribute
Tip revision: ef2b2f4
sre.py
"""This file is only retained for backwards compatibility.
It will be removed in the future.  sre was moved to re in version 2.5.
"""

import warnings
warnings.warn("The sre module is deprecated, please import re.",
              DeprecationWarning, 2)

from re import *
from re import __all__

# old pickles expect the _compile() reconstructor in this module
from re import _compile
back to top