Skip to content

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

Open
jonathandung wants to merge 6 commits intopython:mainfrom
jonathandung:patch-1
Open

gh-146547: Use lazy imports in ctypes, including for sysconfig, shutil, subprocess and warnings modules#146548
jonathandung wants to merge 6 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
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

2 participants