Hacker News Show HN· owebeeone·· 9 天前AI 评分15
Show HN: compat-sentinel 为 Python 3.10+ 提供 PEP 661 sentinel 兼容实现
Show HN: Pre Python 3.15 PEP 661 compat-sentinel
AI 导读
独立开发者发布 compat_sentinel,在 Python 3.10 及以上提供 PEP 661 sentinel:3.15 起直接使用内置实现,旧版本用本地实现,构造、copy 与 pickle 查找行为一致。
来源:Hacker News Show HN · pypi.org