Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-41006: pkgutil imports lazily re #20939

Merged
merged 1 commit into from Jun 17, 2020
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 17, 2020

The pkgutil module now imports lazily the re module to speedup Python
startup time.

https://bugs.python.org/issue41006

The pkgutil module now imports lazily the re module to speedup Python
startup time.
@vstinner
Copy link
Member Author

vstinner commented Jun 17, 2020

base64.b32encode() uses a similar approach, for example.

@vstinner
Copy link
Member Author

vstinner commented Jun 17, 2020

2 hours later, not Travis CI build was started :-( I cannot see my PR at https://travis-ci.org/github/python/cpython/pull_requests

I close/reopen the PR to force a new Travis CI job.

@vstinner vstinner closed this Jun 17, 2020
@vstinner vstinner reopened this Jun 17, 2020
@vstinner vstinner merged commit 98ce7b1 into python:master Jun 17, 2020
4 checks passed
@vstinner vstinner deleted the pkgutil_re branch Jun 17, 2020
arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
The pkgutil module now imports lazily the re module to speedup Python
startup time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants