Skip to content

gh-146547: Use lazy imports in ctypes, including for sysconfig, shutil, subprocess and warnings modules#146548

Merged
encukou merged 8 commits intopython:mainfrom
jonathandung:patch-1
Apr 7, 2026
Merged

gh-146547: Use lazy imports in ctypes, including for sysconfig, shutil, subprocess and warnings modules#146548
encukou merged 8 commits intopython:mainfrom
jonathandung:patch-1

Conversation

@jonathandung
Copy link
Copy Markdown
Contributor

@jonathandung jonathandung commented Mar 28, 2026

@jonathandung
Copy link
Copy Markdown
Contributor Author

Please add the skip news label.

@picnixz
Copy link
Copy Markdown
Member

picnixz commented Mar 28, 2026

I am still not convinced by this change. The rationale is unclear to me. So I will clsoe the PR until it has been properly discussed.

@picnixz picnixz closed this Mar 28, 2026
@picnixz picnixz reopened this Apr 6, 2026
@jonathandung jonathandung changed the title gh-146547: Move import of sysconfig in ctypes/__init__.py into ctypes.pythonapi creation for android and cygwin platforms gh-146547: Use lazy imports in ctypes, including for sysconfig, shutil, subprocess and warnings modules Apr 6, 2026
@encukou encukou merged commit e65987d into python:main Apr 7, 2026
48 checks passed
@jonathandung
Copy link
Copy Markdown
Contributor Author

Thanks

@jonathandung jonathandung deleted the patch-1 branch April 7, 2026 13:28
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.

Improve ctypes startup time

3 participants