Print Email Facebook Twitter Investigating Type Declaration Mismatches in Python Title Investigating Type Declaration Mismatches in Python Author Pascarella, L. (TU Delft Software Engineering) Keshav Ram, A.R. (TU Delft Software Engineering) Nadeem, Azqa (Student TU Delft) Bisesser, Dinesh (Student TU Delft) Knyazev, Norman (Student TU Delft) Bacchelli, A. (University of Zürich) Date 2018 Abstract Past research provided evidence that developers making code changes sometimes omit to update the related documentation, thus creating inconsistencies that may contribute to faults and crashes. In dynamically typed languages, such as Python, an inconsistency in the documentation may lead to a mismatch in type declarations only visible at runtime.With our study, we investigate how often the documentation is inconsistent in a sample of 239 methods from five Python open- source software projects. Our results highlight that more than 20% of the comments are either partially defined or entirely missing and that almost 1% of the methods in the analyzed projects contain type inconsistencies. Based on these results, we create a tool, PyID, to early detect type mismatches in Python documentation and we evaluate its performance with our oracle. Subject DocumentationPythonToolsRuntimeComputer crashesLibraries To reference this document use: http://resolver.tudelft.nl/uuid:0be4cec6-ca0a-46a3-86b3-1bb5550577a7 DOI https://doi.org/10.1109/MALTESQUE.2018.8368458 Publisher IEEE, Piscataway, NJ ISBN 978-1-5386-5920-5 Source 2018 IEEE Workshop on Machine Learning Techniques for Software Quality Evaluation (MaLTeSQuE) Event MaLTeSQuE 2018, 2018-03-20, Campobasso, Italy Bibliographical note Accepted Author Manuscript Part of collection Institutional Repository Document type conference paper Rights © 2018 L. Pascarella, A.R. Keshav Ram, Azqa Nadeem, Dinesh Bisesser, Norman Knyazev, A. Bacchelli Files PDF TUD_SERG_2018_005.pdf 286.58 KB Close viewer /islandora/object/uuid:0be4cec6-ca0a-46a3-86b3-1bb5550577a7/datastream/OBJ/view