Commit d00e56b
Split difflib into pure-Python reference and public shim
Move the pure-Python implementation of difflib to Lib/_pydifflib.py and
turn Lib/difflib.py into a thin shim that re-exports its public API.
This mirrors the layout used by decimal/_pydecimal, datetime/_pydatetime,
and pickle/_pickle, where the public module dispatches to a faster C
implementation when available and the pure-Python module is preserved
as a self-contained reference for alternative Python implementations.
No public behaviour change. ``Match`` is constructed with
``module='difflib'`` so its qualified name matches the public module.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 388e023 commit d00e56b
2 files changed
Lines changed: 2107 additions & 2079 deletions
0 commit comments