EUVIMEDEUVIMED entdecken
Crossref

An empirical study of the Python/C API on evolution and bug patterns

Mingzhe Hu, Yu Zhang

Journal of Software: Evolution and Process · 2023-02 · 35 (2)

DOI: 10.1002/smr.2507 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Software: Evolution and Process, online erschienen am 06.09.2022. Verfasst von Mingzhe Hu und 1 weiteren Autor:innen. Die Arbeit wurde bisher 9-mal zitiert (Crossref) und nennt 68 Literaturangaben. Gefördert von: National Natural Science Foundation of China, Natural Science Foundation of Anhui Province.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Python is a popular programming language, and a large part of its appeal comes from diverse libraries and extension modules. In the bloom of data science and machine learning, Python frontend with C/C++ native implementation achieves both productivity and performance and has almost become the standard structure for many mainstream software systems. However, feature discrepancies between two languages such as exception handling, memory management, and type system can pose many safety hazards in the interface layer using the Python/C API. In this paper, we carry out an empirical study of the Python/C API on evolution and bug patterns. The evolution analysis includes Python/C API design in CPython compilers and its usage in mainstream software. By designing and applying a static analysis toolset, we reveal the evolution and usage statistics of the Python/C API and provide a summary and classification of 9 common bug patterns. In Pillow, a widely used Python imaging library, we find 48 bugs, 19 of which are undiscovered before. Our toolset can be easily extended to access different types of syntactic bug‐finding checkers, and our systematical taxonomy to classify bugs can guide the construction of more highly automated and high‐precision bug‐finding tools.

Förderung

  • National Natural Science Foundation of China
  • Natural Science Foundation of Anhui Province

Zitieren

APA

Hu, M., & Zhang, Y. (2023). An empirical study of the Python/C API on evolution and bug patterns. Journal of Software: Evolution and Process, 35(2). https://doi.org/10.1002/smr.2507

Vancouver

Hu M, Zhang Y. An empirical study of the Python/C API on evolution and bug patterns. Journal of Software: Evolution and Process. 2023;35(2). doi:10.1002/smr.2507

BibTeX
@article{Hu2023,
  author = {Hu, Mingzhe and Zhang, Yu},
  title = {An empirical study of the Python/C API on evolution and bug patterns},
  journal = {Journal of Software: Evolution and Process},
  year = {2023},
  volume = {35},
  number = {2},
  doi = {10.1002/smr.2507}
}
Kostenlos starten →