{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,24]],"date-time":"2026-10-24T04:12:43Z","timestamp":1792815163285,"version":"4.5.0"},"reference-count":51,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T00:00:00Z","timestamp":1750291200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/publication-rights-and-licensing-policy"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2025,6,19]]},"abstract":"<jats:p>\n                    Python is a dynamic language with applications in many domains, and one of the most popular languages in recent years. To increase code quality, developers have turned to \u201clinters\u201d that statically analyze the source code and warn about potential programming problems. However, the inherent limitations of static analysis and the dynamic nature of Python make it difficult or even impossible for static linters to detect some problems. This paper presents DyLin, the first dynamic linter for Python. Similar to a traditional linter, the approach has an extensible set of checkers, which, unlike in traditional linters, search for specific programming anti-patterns by analyzing the program as it executes. A key contribution of this paper is a set of 15 Python-specific antipatterns that are hard to find statically but amenable to dynamic analysis, along with corresponding checkers to detect them. Our evaluation applies DyLin to 37 popular open-source Python projects on GitHub and to a dataset of code submitted to Kaggle machine learning competitions, totaling over 683k lines of Python code. The approach reports a total of 68 problems, 48 of which are previously unknown true positives, i.e., a precision of 70.6%. The detected problems include bugs that cause incorrect values, such as\n                    <jats:monospace>inf<\/jats:monospace>\n                    , incorrect behavior, e.g., missing out on relevant events, unnecessary computations that slow down the program, and unintended data leakage from test data to the training phase of machine learning pipelines. These issues remained unnoticed in public repositories for more than 3.5 years, on average, despite the fact that the corresponding code has been exercised by the developer-written tests. A comparison with popular static linters and a type checker shows that DyLin complements these tools by detecting problems that are missed statically. Based on our reporting of 42 issues to the developers, 31 issues have so far been fixed.\n                  <\/jats:p>","DOI":"10.1145\/3729395","type":"journal-article","created":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T11:16:02Z","timestamp":1750331762000},"page":"2828-2849","source":"Crossref","is-referenced-by-count":4,"title":["DyLin: A Dynamic Linter for Python"],"prefix":"10.1145","volume":"2","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-9763-8147","authenticated-orcid":false,"given":"Aryaz","family":"Eghbali","sequence":"first","affiliation":[{"name":"University of Stuttgart, Stuttgart, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-4561-1174","authenticated-orcid":false,"given":"Felix","family":"Burk","sequence":"additional","affiliation":[{"name":"University of Stuttgart, Stuttgart, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1623-498X","authenticated-orcid":false,"given":"Michael","family":"Pradel","sequence":"additional","affiliation":[{"name":"University of Stuttgart, Stuttgart, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,19]]},"reference":[{"key":"e_1_3_1_2_2","doi-asserted-by":"publisher","DOI":"10.1109\/CSF51468.2021.00043"},{"key":"e_1_3_1_3_2","doi-asserted-by":"publisher","unstructured":"Miltiadis Allamanis Earl T. Barr Soline Ducousso and Zheng Gao. 2020. Typilus: neural type hints. In Proceedings of the 41st ACM SIGPLAN International Conference on Programming Language Design and Implementation PLDI. 91\u2013105. doi: 10.1145\/3385412.3385997","DOI":"10.1145\/3385412.3385997"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","unstructured":"Jong-Hoon David An Avik Chaudhuri Jeffrey S. Foster and Michael Hicks. 2011. Dynamic inference of static types for Ruby. In Proceedings of the 38th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages POPL. 459\u2013472. doi: 10.1145\/1926385.1926437","DOI":"10.1145\/1926385.1926437"},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","unstructured":"Pavel Avgustinov Oege de Moor Michael Peyton Jones and Max Sch\u00e4fer. 2016. QL: Object-oriented Queries on Relational Data. In 30th European Conference on Object-Oriented Programming (ECOOP 2016) (Leibniz International Proceedings in Informatics (LIPIcs) Vol. 56) Shriram Krishnamurthi and Benjamin S. Lerner (Eds.). Schloss Dagstuhl\u2014Leibniz-Zentrum fuer Informatik Dagstuhl Germany 2:1\u20132:25. doi: 10.4230\/LIPIcs.ECOOP.2016.2","DOI":"10.4230\/LIPIcs.ECOOP.2016.2"},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","unstructured":"Islem Bouzenia Bajaj Piyush Krishan and Michael Pradel. 2024. DyPyBench: A Benchmark of Executable Python Software. In ACM International Conference on the Foundations of Software Engineering (FSE). doi: 10.1145\/3643742","DOI":"10.1145\/3643742"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00081"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.5555\/776261.776290"},{"key":"e_1_3_1_9_2","doi-asserted-by":"publisher","DOI":"10.1109\/COMPSAC.2014.30"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1145\/1273463.1273490"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","unstructured":"Malinda Dilhara Danny Dig and Ameya Ketkar. 2023. PYEVOLVE: Automating Frequent Code Changes in Python ML Systems. In ICSE. doi: 10.1109\/ICSE48619.2023.00091","DOI":"10.1109\/ICSE48619.2023.00091"},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","unstructured":"Manuel Egele Maverick Woo Peter Chapman and David Brumley. 2014. Blanket Execution: Dynamic Similarity Testing for Program Binaries and Components. In Proceedings of the 23rd USENIX Security Symposium San Diego CA USA August 20-22 2014. 303\u2013317. doi: 10.5555\/2671225.2671245","DOI":"10.5555\/2671225.2671245"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","unstructured":"Aryaz Eghbali Felix Burk and Michael Pradel. 2025. DyLin: A Dynamic Linter for Python. Software archived in Zenodo. doi: 10.5281\/zenodo.15193949","DOI":"10.5281\/zenodo.15193949"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1145\/3540250.3549126"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1145\/982962.964023"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/1806672.1806674"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","unstructured":"Liang Gong Michael Pradel and Koushik Sen. 2015. JITProf: Pinpointing JIT-unfriendly JavaScript Code. In European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC\/FSE). 357\u2013368. doi: 10.1145\/2786805.2786831","DOI":"10.1145\/2786805.2786831"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","unstructured":"Liang Gong Michael Pradel Manu Sridharan and Koushik Sen. 2015. DLint: Dynamically Checking Bad Coding Practices in JavaScript. In International Symposium on Software Testing and Analysis (ISSTA). 94\u2013105. doi: 10.1145\/2771783.2771809","DOI":"10.1145\/2771783.2771809"},{"key":"e_1_3_1_19_2","doi-asserted-by":"publisher","unstructured":"Luca Di Grazia and Michael Pradel. 2022. The Evolution of Type Annotations in Python: An Empirical Study. In ESEC\/FSE. doi: 10.1145\/3540250.3549114","DOI":"10.1145\/3540250.3549114"},{"key":"e_1_3_1_20_2","doi-asserted-by":"crossref","unstructured":"Andrew Habib and Michael Pradel. 2018. How many of all bugs do we find? a study of static bug detectors. In Proceedings of the 33rd ACM\/IEEE International Conference on Automated Software Engineering. 317\u2013328.","DOI":"10.1145\/3238147.3238213"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","unstructured":"Elnar Hajiyev Mathieu Verbaere and Oege de Moor. 2006. codeQuest: Scalable Source Code Queries with Datalog. In ECOOP 2006 - Object-Oriented Programming 20th European Conference Nantes France July 3-7 2006 Proceedings (Lecture Notes in Computer Science Vol. 4067) Dave Thomas (Ed.). Springer 2\u201327. doi: 10.1007\/11785477_2","DOI":"10.1007\/11785477_2"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","unstructured":"Matthias H\u00f6schele and Andreas Zeller. 2016. Mining input grammars from dynamic taints. In Proceedings of the 31st IEEE\/ACM International Conference on Automated Software Engineering ASE 2016 Singapore September 3-7 2016. 720\u2013725. doi: 10.1145\/2970276.2970321","DOI":"10.1145\/2970276.2970321"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2013.6606613"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","unstructured":"Hong Jin Kang Khai Loong Aw and David Lo. 2022. Detecting false alarms from automatic static analysis tools: how far are we?. In Proceedings of the 44th International Conference on Software Engineering. 698\u2013709. doi: 10.1145\/3510003.3510214","DOI":"10.1145\/3510003.3510214"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2020.15"},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","unstructured":"Daniel Lehmann and Michael Pradel. 2019. Wasabi: A Framework for Dynamically Analyzing WebAssembly. In ASPLOS. doi: 10.1145\/3297858.3304068","DOI":"10.1145\/3297858.3304068"},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.1145\/1064978.1065034"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2019.00146"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","DOI":"10.1145\/2162049.2162077"},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","unstructured":"Marcus Nachtigall Michael Schlichtig and Eric Bodden. 2022. A large-scale study of usability criteria addressed by static analysis tools. In Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis. 532\u2013543. doi: 10.1145\/3533767.3534374","DOI":"10.1145\/3533767.3534374"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.1145\/1250734.1250746"},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","DOI":"10.1145\/781498.781528"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","unstructured":"Wonseok Oh and Hakjoo Oh. 2022. PyTER: Effective Program Repair for Python Type Errors. In ESEC\/FSE. doi: 10.1145\/3540250.3549130","DOI":"10.1145\/3540250.3549130"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","unstructured":"Michael Pradel Georgios Gousios Jason Liu and Satish Chandra. 2020. TypeWriter: Neural Type Prediction with Search-based Validation. In ESEC\/FSE \u201820:28th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering Virtual Event USA November 8-13 2020. 209\u2013220. https:\/\/doi.org\/10.1145\/3368089.3409715 10.1145\/3368089.3409715","DOI":"10.1145\/3368089.3409715"},{"key":"e_1_3_1_35_2","doi-asserted-by":"publisher","unstructured":"Michael Pradel and Thomas R. Gross. 2009. Automatic Generation of Object Usage Specifications from Large Method Traces. In International Conference on Automated Software Engineering (ASE). 371\u2013382. doi: 10.1109\/ASE.2009.60","DOI":"10.1109\/ASE.2009.60"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","unstructured":"Michael Pradel Parker Schuh and Koushik Sen. 2015. TypeDevil: Dynamic Type Inconsistency Analysis for JavaScript. In International Conference on Software Engineering (ICSE). doi: 10.5555\/2818754.2818795","DOI":"10.5555\/2818754.2818795"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","unstructured":"Ingkarat Rak-Amnouykit Daniel McCrevan Ana Milanova Martin Hirzel and Julian Dolby. 2020. Python 3 Types in the Wild: A Tale of Two Type Systems. In DLS. doi: 10.1145\/3426422.3426981","DOI":"10.1145\/3426422.3426981"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","DOI":"10.1145\/265924.265927"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","unstructured":"Koushik Sen Swaroop Kalasapur Tasneem Brutch and Simon Gibbs. 2013. Jalangi: A Selective Record-Replay and Dynamic Analysis Framework for JavaScript. In European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC\/FSE). 488\u2013498. doi: 10.1145\/2491411.2491447","DOI":"10.1145\/2491411.2491447"},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","unstructured":"Beatriz Souza and Michael Pradel. 2023. LExecutor: Learning-Guided Execution. In Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering ESEC\/FSE. 1522\u20131534. doi: 10.1145\/3611643.3616254","DOI":"10.1145\/3611643.3616254"},{"key":"e_1_3_1_41_2","doi-asserted-by":"publisher","unstructured":"Klaas-Jan Stol Paul Ralph and Brian Fitzgerald. 2016. Grounded theory in software engineering research: a critical review and guidelines. In Proceedings of the 38th International conference on software engineering. 120\u2013131. doi: 10.1145\/2884781.2884833","DOI":"10.1145\/2884781.2884833"},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","unstructured":"Luca Della Toffola Michael Pradel and Thomas R. Gross. 2015. Performance Problems You Can Fix: A Dynamic Analysis of Memoization Opportunities. In Conference on Object-Oriented Programming Systems Languages and Applications (OOPSLA). 607\u2013622. doi: 10.1145\/2858965.2814290","DOI":"10.1145\/2858965.2814290"},{"key":"e_1_3_1_43_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2018.2871058"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","unstructured":"Tongjie Wang Yaroslav Golubev Oleg Smirnov Jiawei Li Timofey Bryksin and Iftekhar Ahmed. 2021. PyNose: A Test Smell Detector For Python. In ASE. doi: 10.1109\/ASE51524.2021.9678615","DOI":"10.1109\/ASE51524.2021.9678615"},{"key":"e_1_3_1_45_2","doi-asserted-by":"publisher","DOI":"10.1145\/1543135.1542523"},{"key":"e_1_3_1_46_2","doi-asserted-by":"publisher","DOI":"10.1145\/2950290.2950357"},{"key":"e_1_3_1_47_2","doi-asserted-by":"publisher","unstructured":"Zhaogui Xu Xiangyu Zhang Lin Chen Kexin Pei and Baowen Xu. 2016. Python probabilistic type inference with natural language support. In Proceedings of the 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering FSE 2016 Seattle WA USA November 13-18 2016. 607\u2013618. doi: 10.1145\/2950290.2950343","DOI":"10.1145\/2950290.2950343"},{"key":"e_1_3_1_48_2","doi-asserted-by":"publisher","unstructured":"Yanyan Yan Yang Feng Hongcheng Fan and Baowen Xu. 2023. DLInfer: Deep Learning with Static Slicing for Python Type Inference. In ICSE. doi: 10.1109\/ICSE48619.2023.00170","DOI":"10.1109\/ICSE48619.2023.00170"},{"key":"e_1_3_1_49_2","doi-asserted-by":"publisher","unstructured":"Chenyang Yang Rachel A. Brower-Sinning Grace Lewis and Christian K\u00e4stner. 2022. Data leakage in notebooks: Static detection and better processes. In Proceedings of the 37th IEEE\/ACM International Conference on Automated Software Engineering. 1\u201312. doi: 10.1145\/3551349.3556918","DOI":"10.1145\/3551349.3556918"},{"key":"e_1_3_1_50_2","doi-asserted-by":"publisher","DOI":"10.1145\/1134285.1134325"},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","unstructured":"Hongjie Ye Wei Chen Wensheng Dou Guoquan Wu and Jun Wei. 2022. Knowledge-Based Environment Dependency Inference for Python Programs. In ICSE. doi: 10.1145\/3510003.3510127","DOI":"10.1145\/3510003.3510127"},{"key":"e_1_3_1_52_2","doi-asserted-by":"publisher","unstructured":"Zejun Zhang Zhenchang Xing Xin Xia Xiwei Xu Liming Zhu and Qinghua Lu. 2023. Faster or Slower? Performance Mystery of Python Idioms Unveiled with Empirical Evidence. In ICSE. doi: 10.1109\/ICSE48619.2023.00130","DOI":"10.1109\/ICSE48619.2023.00130"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3729395","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T11:06:48Z","timestamp":1787483208000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3729395"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,19]]},"references-count":51,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2025,6,19]]}},"alternative-id":["10.1145\/3729395"],"URL":"https:\/\/doi.org\/10.1145\/3729395","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,19]]}}}