Back to search

University of Akron

Extending srcML to Python to Analyze Pythonic Idioms

Abstract

dc:description

As programming languages rise in popularity, static analysis tools must adapt to support developers’ needs. This is true for the srcML infrastructure, which provides an XML-based representation of source code. However, it only supports C, C++, C#, and Java, primarily due to the complexity of extending the srcML infrastructure. This thesis explores the necessary modifications to support the inclusion of additional languages in srcML. It is the first use of a table-based approach for keyword-based statements, which significantly expedites the language addition process. This approach supports most of Python in srcML. The resulting Python implementation is used to identify Pythonic idioms—code snippets with a specific purpose—in five large Python codebases: scikit-learn, Django, CPython, TensorFlow, and PyTorch. Such statistics are useful in software ecosystems research to identify the behavior of Python developers. In addition to the complete extension to Python, it provides a guide to extending to other programming languages via the same approach.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
masters
Discipline thesis:degree_discipline
Computer Science
Grantor dc:publisher
University of Akron
Year dc:date
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Rossi, Kyle N.
Advisor dc:contributor.advisor
  • Collard, Michael

Subjects

dc:subject × 2

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Rossi, Kyle N.. Extending srcML to Python to Analyze Pythonic Idioms. masters thesis, University of Akron, 2025. http://rave.ohiolink.edu/etdc/view?acc_num=akron1750947582590048