2to3
Verified for current stable LTS
2to3 Commands
2to3 command syntax with verified terminal examples.
Commands
12 commands for 2to3
2to3 Operations
2to3 Command: Convert Python2 To Python3
2to3 -w <path/to/file.py> 2to3 Operations
2to3 Command: List Available Fixes
2to3 -l 2to3 Operations
2to3 Command: Dry Run Conversion
2to3 <path/to/file.py> 2to3 Operations
2to3 Command: Convert Except Specified Features
2to3 -w <path/to/file.py> -x <has_key> -x <isinstance> 2to3 Operations
2to3 Command: Convert All Files In Directory
2to3 -o <path/to/python3_directory> -W -n <path/to/python2_directory> 2to3 Operations
2to3 Command: Convert Specific Features
2to3 -w <path/to/file.py> -f <raw_input> -f <print> 2to3 Operations
2to3 Command: Multi Threaded Conversion
2to3 -j <4> -o <path/to/python3_directory> -w -n --no-diffs <path/to/python2_directory> 2to3 Operations
2to3 Command: List Fixes
2to3 -l 2to3 Operations
2to3 Command: Dry Run
2to3 <path/to/file.py> 2to3 Operations
2to3 Command: Convert File
2to3 -w <path/to/file.py> 2to3 Operations
2to3 Command: Exclude Features
2to3 -w <path/to/file.py> -x <has_key> -x <isinstance> 2to3 Operations
2to3 Command: Convert Directory
2to3 -o <path/to/python3_directory> -W -n <path/to/python2_directory> Suggest a 2to3 Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common 2to3 workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.