paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Exploring how deprecated Python library APIs are (not) handled

探究 Python 库中已弃用 API 如何(未)被处理
FSE Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2020匹配度 2/10 · 该论文是 Python 库 API 弃用处理的实证研究,关注维护者声明、文档与用户反应,属于软件工程/开发者工具领域;但未涉及静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析等用户核心方向,与研究方向交集很弱。引用 51 inbox
Jiawei Wang, Li Li, Kui Liu, Haipeng Cai
crossref: 2026-09-12

AI 速览

一句话:首次实证研究 Python 库 API 弃用,揭示维护者声明与文档不足、用户处理困难。

本文首次对 Python 库已弃用 API 进行探索性实证研究,旨在了解 Python 库中 API 弃用的现状。作者考察六个知名 Python 库如何声明和文档化已弃用 API,并分析 1200 个 GitHub 项目如何应对这些弃用。实验观察表明,库维护者对 API 弃用的处理普遍不佳,导致 Python 开发者难以正确解决对已弃用库 API 的使用。该经验证据呼吁社区立即采取措施,妥善处理 Python 库 API 的弃用问题。

问题
研究 Python 库中已弃用 API 的声明、文档与使用现状,特别是维护者如何标注弃用以及库用户如何反应和处理。
方法
对六个知名 Python 库和 1200 个 GitHub 项目进行探索性实证分析,检查弃用 API 的声明、文档以及项目中的使用与处理情况。
评估
通过实证观察发现库贡献者对 API 弃用处理不佳,进而导致开发者难以解决已弃用库 API 的使用问题,并据此提出社区应采取措施。
原文摘要(Abstract)

In this paper, we present the first exploratory study of deprecated Python library APIs to understand the status quo of API deprecation in the realm of Python libraries. Specifically, we aim to comprehend how deprecated library APIs are declared and documented in practice by their maintainers, and how library users react to them. By thoroughly looking into six reputed Python libraries and 1,200 GitHub projects, we experimentally observe that API deprecation is poorly handled by library contributors, which subsequently introduce difficulties for Python developers to resolve the usage of deprecated library APIs. This empirical evidence suggests that our community should take immediate actions to appropriately handle the deprecation of Python library APIs.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5711,
  title = {Exploring how deprecated Python library APIs are (not) handled},
  author = {Jiawei Wang and Li Li and Kui Liu and Haipeng Cai},
  booktitle = {FSE},
  year = {2020},
  doi = {10.1145/3368089.3409735}
}