
2to3
List of commands for 2to3:
-
2to3:tldr:08203 2to3: Convert a Python 2 file to Python 3.$ 2to3 --write ${filename-py}try on your machineexplain this command
-
2to3:tldr:19166 2to3: Convert specific Python 2 language features to Python 3.$ 2to3 --write ${filename-py} --fix=${raw_input} --fix=${print}try on your machineexplain this command
-
2to3:tldr:40dc8 2to3: Display a list of all available language features that can be converted from Python 2 to Python 3.$ 2to3 --list-fixestry on your machineexplain this command
-
2to3:tldr:4c0e4 2to3: Convert all Python 2 files in a directory to Python 3.$ 2to3 --output-dir=${path-to-python3_directory} --write-unchanged-files --nobackups ${path-to-python2_directory}try on your machineexplain this command
-
2to3:tldr:4df69 2to3: Convert all Python 2 language features except the specified ones to Python 3.$ 2to3 --write ${filename-py} --nofix=${has_key} --nofix=${isinstance}try on your machineexplain this command
-
2to3:tldr:bb762 2to3: Run 2to3 with multiple threads.$ 2to3 --processes=${4} --output-dir=${path-to-python3_directory} --write --nobackups --no-diff ${path-to-python2_directory}try on your machineexplain this command
-
2to3:tldr:d4360 2to3: Display the changes that would be performed without performing them (dry-run).$ 2to3 ${filename-py}try on your machineexplain this command