Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python 2 と Python 3 の両方で動作するように Python コードベースを移行したいのですが、デフォルトで flake8 や pep8 などのツールが (print 1の代わりにprint(1)) 括弧なしの非常に単純な print の使用法を見逃していることに驚きました。
print 1
print(1)
この移行を容易にするにはどうすればよいですか?
コードの問題/非互換性を見つけるには、2to3 を使用する必要があります。
https://docs.python.org/3/howto/pyporting.html