You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drop interactive/dev-only stdlib modules from embedded packages
Running an app in embedded mode never enters the interactive REPL, so the REPL/dev-only
modules are dead weight. Confirmed via import trace (a plain script imports none of them;
site.py only touches _pyrepl/rlcompleter inside the interactive hook). Remove from all
platform excludes: _pyrepl (~300 KB), rlcompleter, tabnanny, the easter eggs this/
antigravity, and the frozen demo modules __hello__/__phello__.
Deliberately kept (a library or breakpoint() may import them): unittest (mock), pdb/bdb,
pydoc, doctest, code/codeop, multiprocessing, venv.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments