Unveiling Python']Python Version Compatibility Challenges in Code Snippets on Stack Overflow

被引:0
|
作者
Yang, Shiyu [1 ]
Kanda, Tetsuya [1 ]
German, Daniel M. [2 ]
Higo, Yoshiki [1 ]
机构
[1] Osaka Univ, Grad Sch Informat Sci & Technol, Suita 5650871, Japan
[2] Univ Victoria, Dept Comp Sci, Victoria, BC V8P 5C2, Canada
关键词
Stack Overflow; !text type='Python']Python[!/text; code snippets; version compatibility; USAGE;
D O I
10.1587/transinf.2023EDP7238
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Stack Overflow, a leading Q&A platform for developers, is a substantial reservoir of Python code snippets. Nevertheless, the incompatibility issues between Python versions, particularly Python 2 and Python 3, introduce substantial challenges that can potentially jeopardize the utility of these code snippets. This empirical study dives deep into the challenges of Python version inconsistencies on the interpretation and application of Python code snippets on Stack Overflow. Our empirical study exposes the prevalence of Python version compatibility issues on Stack Overflow. It further emphasizes an apparent deficiency in version-specific identification, a critical element that facilitates the identification and utilization of Python code snippets. These challenges, primarily arising from the lack of backward compatibility between Python's major versions, pose significant hurdles for developers relying on Stack Overflow for code references and learning. This study, therefore, signifies the importance of proactively addressing these compatibility issues in Python code snippets. It advocates for enhanced tools and strategies to assist developers in efficiently navigating through the Python version complexities on platforms like Stack Overflow. By highlighting these concerns and providing a potential remedy, we aim to contribute to a more efficient and effective programming experience on Stack Overflow and similar platforms.
引用
收藏
页码:1007 / 1015
页数:9
相关论文
共 22 条
  • [1] PyVerDetector: A Chrome Extension Detecting the Python']Python Version of Stack Overflow Code Snippets
    Yang, Shiyu
    Kanda, Tetsuya
    Pizzolotto, Davide
    German, Daniel M.
    Higo, Yoshiki
    2023 IEEE/ACM 31ST INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION, ICPC, 2023, : 25 - 29
  • [2] Intelligent mining vulnerabilities in python']python code snippets
    Guo, Wenbo
    Huang, Cheng
    Niu, Weina
    Fang, Yong
    JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2021, 41 (02) : 3615 - 3628
  • [3] Toxic Code Snippets on Stack Overflow
    Ragkhitwetsagul, Chaiyong
    Krinke, Jens
    Paixao, Matheus
    Bianco, Giuseppe
    Oliveto, Rocco
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 47 (03) : 560 - 581
  • [4] Gistable: Evaluating the Executability of Python']Python Code Snippets on GitHub
    Horton, Eric
    Parnin, Chris
    PROCEEDINGS 2018 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2018, : 217 - 227
  • [5] Empirical Study of the Evolution of Python']Python Questions on Stack Overflow
    Syam, Gopika
    Lal, Sangeeta
    Chen, Tao
    E-INFORMATICA SOFTWARE ENGINEERING JOURNAL, 2023, 17 (01)
  • [6] DockerizeMe: Automatic Inference of Environment Dependencies for Python']Python Code Snippets
    Horton, Eric
    Parnin, Chris
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2019), 2019, : 328 - 338
  • [7] Chaos to Clarity with Semantic Inferencing for Python']Python Source Code Snippets
    Stein, Aviel
    Mancoridis, Spiros
    2023 IEEE 17TH INTERNATIONAL CONFERENCE ON SEMANTIC COMPUTING, ICSC, 2023, : 161 - 166
  • [8] Enhancing Python']Python Compiler Error Messages via Stack Overflow
    Thiselton, Emillie
    Treude, Christoph
    2019 13TH ACM/IEEE INTERNATIONAL SYMPOSIUM ON EMPIRICAL SOFTWARE ENGINEERING AND MEASUREMENT (ESEM 2019), 2019, : 82 - 93
  • [9] Python']Python Code Parallelization, Challenges and Alternatives
    Gonzalez, Justo
    Taylor, Julian
    Castro, Sandra
    Kern, Jeff
    Knudstrup, Jens
    Zampieri, Stefano
    Manning, Alisdair
    Bhatnagar, Sanjay
    Davis, Lindsey
    Golap, Kumar
    Jacobs, Jim
    Nakazato, Takeshi
    Petry, Dirk
    Pokorny, Martin
    Rao, Urvashi
    Robnett, James
    Schiebel, Darrell
    Sugimoto, Kanako
    Tsutsumi, Takahiro
    Wells, Akeem
    Williams, Stewart J.
    ASTRONOMICAL DATA ANALYSIS SOFTWARE AND SYSTEMS XXVI, 2019, 521 : 515 - 518
  • [10] From Query to Usable Code: An Analysis of Stack Overflow Code Snippets
    Yang, Di
    Hussain, Aftab
    Lopes, Cristina Videira
    13TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2016), 2016, : 391 - 401