]> granicus.if.org Git - python/commit
Issue #28637: Revert issue #28082, don't import enum in re
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 7 Nov 2016 23:42:46 +0000 (00:42 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 7 Nov 2016 23:42:46 +0000 (00:42 +0100)
commit1ec1cd161b351bc42c4b55c0f943fa5f8fe1bb6e
tree1fa9fac0f32efc99837a3946bb5301b4da91adc7
parent9b88fdf4f09b77d866a3591c9e64b4e8a5b25920
Issue #28637: Revert issue #28082, don't import enum in re

Importing the enum module in the re module slows down Python startup by 34%
when Python is run from a virtual environment, or more generally when the re
module is imported at startup but not the enum module.
Lib/re.py