[Python] How to parse Python files to see if they are compatible with Python 3.7

Discussão em 'Python' iniciado por Stack, Março 14, 2025.

  1. Stack

    Stack Membro Participativo

    I am currently deploying some code on a fleet of raspberry pi systems. The systems all have python 3.7.x installed but one of my team's custom libraries has some python 3.8 features (a few walrus operators, etc). I need to modify my library to remove all of the 3.8 features so that the code runs on these machines. I am not able to update the python version on them. Is there a script or tool that exists to batch check if a file or folder of files is compatible with python 3.7? I'm thinking something similar to how flake8 or black can check for issues.

    Continue reading...

Compartilhe esta Página