Metraipolis › archive › dc_5eb471c051a6
Detecting Behavioral Changes in Python Refactoring Implementations with Foundation Models — arXiv:2608.09919
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.09919
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-19T09:01:03.983Z
- SHA-256 of the archived text
91dfba9835e5c09f49139b817ffca1ac2b599b0fed57f6bdf1f167be1493eb66- Stable URL of this page
https://metraipolis.com/documento/dc_5eb471c051a6
How to cite
Detecting Behavioral Changes in Python Refactoring Implementations with Foundation Models — arXiv:2608.09919 — arXiv (en), https://arxiv.org/abs/2608.09919 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_5eb471c051a6 (Metraipolis archive dc_5eb471c051a6, sha256 91dfba9835e5c09f49139b817ffca1ac2b599b0fed57f6bdf1f167be1493eb66)
BibTeX
@misc{dc5eb471c051a6,
title = {Detecting Behavioral Changes in Python Refactoring Implementations with Foundation Models — arXiv:2608.09919},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.09919},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_5eb471c051a6; sha256 91dfba9835e5c09f49139b817ffca1ac2b599b0fed57f6bdf1f167be1493eb66},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.09919. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Python is a widely adopted programming language, valued for its simplicity and flexibility. However, automated refactoring for Python remains challenging, even though refactoring is an essential practice in software evolution aimed at improving internal code structure without changing external behavior. Understanding how behavioral changes are introduced during refactoring is crucial, as such issues can compromise software reliability and reduce developer productivity. We propose an approach based on a foundation model oracle that analyzes git-style diffs to identify behavioral changes introduced by Python refactorings. We evaluated our technique on Rope refactoring implementations, reusing 1,152 refactoring attempts from a prior study and analyzing 217 resulting transformation pairs with the oracle. Our model-based analysis uncovered 13 distinct bugs among the seven refactoring types studied. All reported bugs were submitted to the respective developers, and 12 of the 13 resulting issue reports were accepted according to issue-tracker evidence. These results highlight the need to improve the robustness of current Python refactoring tools to ensure the correctness of automated code transformations and support reliable software maintenance. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-11 in cs.SE). Categorie arXiv: Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2608.09919 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-19T09:00:31.503Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-11?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).