@techreport{oai:ipsj.ixsq.nii.ac.jp:00219054, author = {Shiyu, Yang and Tetsuya, Kanda and Katsuro, Inoue and Shiyu, Yang and Tetsuya, Kanda and Katsuro, Inoue}, issue = {28}, month = {Jul}, note = {Stack Overflow(SO) is a Q&A site for programmers that have accumulated a wealth of code snippets. In 2008, Python 3.0 was released, a new language version not backward compatible with Python 2. This means that code snippets written in Python 2 may not be compiled directly by Python 3. This issue may affect the compilability of Python code snippets on SO. In this work, we use the Python compliance analyzer, PyComply, to parse Python code snippets on SO. The Python code snippets used for this study were from SOTorrent, an open dataset based on the official SO data dump. Using the PyComply parsing results, we investigate the effect of the Python version upgrades on the compilability of Python code snippets on SO.We found that Python version upgrades affected the compilability of Python code snippets on SO, with evidence that the release of the new Python version inhibits the development of the old versions and the trend of code snippets responding to newer versions increases over time., Stack Overflow(SO) is a Q&A site for programmers that have accumulated a wealth of code snippets. In 2008, Python 3.0 was released, a new language version not backward compatible with Python 2. This means that code snippets written in Python 2 may not be compiled directly by Python 3. This issue may affect the compilability of Python code snippets on SO. In this work, we use the Python compliance analyzer, PyComply, to parse Python code snippets on SO. The Python code snippets used for this study were from SOTorrent, an open dataset based on the official SO data dump. Using the PyComply parsing results, we investigate the effect of the Python version upgrades on the compilability of Python code snippets on SO.We found that Python version upgrades affected the compilability of Python code snippets on SO, with evidence that the release of the new Python version inhibits the development of the old versions and the trend of code snippets responding to newer versions increases over time.}, title = {The effect of Python Version Upgrades on the Compilability of Code Snippets posted on Stack Overflow}, year = {2022} }