arrow
Return

Pythonic vs Refactorable Pythonic: On the relationship between Pythonic idioms and code quality in machine learning projects

delete2026-01-16
delete0
delete
OA
AI
G
Gerardo Festa
G
Giammaria Giordano *
V
Valeria Pontillo
Massimiliano Di Penta cover
Massimiliano Di Penta (Massimiliano Di Penta)
D
Damian A. Tamburri
Fabio Palomba cover
Fabio Palomba (Fabio Palomba)
DOI:10.1016/j.infsof.2025.108009delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Python is increasingly becoming the lingua franca for developing Machine Learning (ML) systems, thanks to a rich ecosystem of libraries and an emphasis on readability. In this context, Pythonic idioms are seen as stylistic conventions that support maintainable and efficient code. Conversely, Refactorable-Pythonic idioms refer to patterns that can be refactored into more idiomatic Python, improving code quality in terms of maintainability, performance, and clarity.
Keywords:
Software quality
Software engineering for artificial intelligence
Software maintenance and evolution
Empirical software engineering
Data augmentation of Python code refactoring datasets based on LLMs
err2026-06-18
err0
errOAAI
errVasilica-Andreea Moldovan; Rareş Pătcaş; Simona Motogna
errShare
errSave
Automated Refactoring of Non-Idiomatic Python Code With Pythonic Idioms
err2024-11-01
err0
PREAI
errZhang, Zejun; Xing, Zhenchang; Zhao, Dehai; Xu, Xiwei; Zhu, Liming; Lu, Qinghua
errShare
errSave
A Taxonomy for Python Vulnerabilities
err2024-01-01
err0
errOAAI
errBogaerts, Frederic C. G.; Ivaki, Naghmeh; Fonseca, Jose
errShare
errSave
Towards understanding bugs in Python interpreters
err2022-12-13
err8
PREAI
errLiu, Di; Feng, Yang; Yan, Yanyan; Xu, Baowen
errShare
errSave
A long-term exploratory study of source code quality issues in open-source Python projects
err2026-03-05
err0
PREAI
errBerciu, Liviu-Marian; Motogna, Simona Claudia; Molnar, Arthur-Jozsef
errShare
errSave
A Severity Assessment of Python Code Smells
err2023-01-01
err0
errOAAI
errGupta, Aakanshi; Gandhi, Rashmi; Jatana, Nishtha; Jatain, Divya; Panda, Sandeep Kumar; Ramesh, Janjhyam Venkata Naga
errShare
errSave
When code smells meet ML: on the lifecycle of ML-specific code smells in ML-enabled systems
err2025-07-12
err0
PREAI
errGilberto Recupito; Giammaria Giordano; Filomena Ferrucci; Dario Di Nucci; Fabio Palomba
errShare
errSave
On the adoption and effects of source code reuse on defect proneness and maintenance effort
err2023-12-12
err1
errOAAI
errGiordano, Giammaria; Festa, Gerardo; Catolino, Gemma; Palomba, Fabio; Ferrucci, Filomena; Gravino, Carmine
errShare
errSave

Journal

Information and Software Technology cover
Information and Software Technology
IF:
4.3
Papers:
3.8K
Citations:
9.5K

Organization

G
Gran Sasso Science Institute
Scholars:
61
Papers: 33
Citations: 19
U
University of Salerno
Scholars:
850
Papers: 290
Citations: 6.1K
U
university of sannio
Scholars:
128
Papers: 55
Citations: 1.4K
researcher View more organizations
Cited Papers

Cited Papers

Developer-Driven Code Smell Prioritization
err2020-09-18
err0
PREAI
errFabiano Pecorelli; Fabio Palomba; Foutse Khomh; Andrea De Lucia
errShare
errSave
errShare
errSave
Applying DevOps Practices of Continuous Automation for Machine Learning
err2020-07-13
err0
errOAAI
errIoannis Karamitsos; Saeed Albarhami; Charalampos Apostolopoulos
errShare
errSave
On the diffuseness and the impact on maintainability of code smells
err2018-05-27
err0
PREAI
errFabio Palomba; Gabriele Bavota; Massimiliano Di Penta; Fausto Fasano; Rocco Oliveto; Andrea De Lucia
errShare
errSave
An exploratory study of the impact of antipatterns on class change- and fault-proneness
err2011-08-06
err291
PREAI
errKhomh, Foutse; Di Penta, Massimiliano; Gueheneuc, Yann-Gael; Antoniol, Giuliano
errShare
errSave
The Scent of Deep Learning Code
err2020-09-18
err0
PREAI
errHadhemi Jebnoun; Houssem Ben Braiek; Mohammad Masudur Rahman; Foutse Khomh
errShare
errSave
When and Why Your Code Starts to Smell Bad (and Whether the Smells Go Away)
err2017-11-01
err149
errOAAI
errTufano, Michele; Palomba, Fabio; Bavota, Gabriele; Oliveto, Rocco; Di Penta, Massimiliano; De Lucia, Andrea; Poshyvanyk, Denys
errShare
errSave
researcher View more