Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 2.03 KB

File metadata and controls

36 lines (29 loc) · 2.03 KB

Adapter — where it lives outside this repo

Cited, real implementations to study (or point an agent at) when designing or reviewing adapter-shaped code.

Python standard library

Major ecosystems

What to notice across all of them

Every production adapter translates conventions, not just method names: cmp_to_key bridges calling conventions, TextIOWrapper bridges data models (bytes vs text), dialects bridge error hierarchies. When reviewing an adapter, ask what happens to the adaptee's failure modes — an adapter that only renames methods has usually left the hard mismatch in the client.