Skip to content

Remove dead code and stale Python 2 leftovers (with the help of Claude Fable)#947

Open
Carreau wants to merge 1 commit into
ipython:mainfrom
Carreau:f2
Open

Remove dead code and stale Python 2 leftovers (with the help of Claude Fable)#947
Carreau wants to merge 1 commit into
ipython:mainfrom
Carreau:f2

Conversation

@Carreau

@Carreau Carreau commented Jul 13, 2026

Copy link
Copy Markdown
Member
  • ClassTypes tuple in traitlets.py, a Python 2/3 compat constant never used and not exported
  • execfile() shim in config/loader.py, shadowing the removed Python 2 builtin, never called
  • Config._merge in config/loader.py, a deprecated private alias for Config.merge that was never called and never warned

All verified unreferenced across the package, tests, and docs:

- ClassTypes tuple in traitlets.py, a Python 2/3 compat constant never
  used and not exported
- execfile() shim in config/loader.py, shadowing the removed Python 2
  builtin, never called
- Config._merge in config/loader.py, a deprecated private alias for
  Config.merge that was never called and never warned
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.

1 participant