2to3Python 2-এর কোডকে স্বয়ংক্রিয়ভাবে Python 3–এ রূপান্তর করার জন্য ব্যবহৃত হয়। এই মডিউলটি Python 3.11 থেকে ডিপ্রিকেটেড এবং Python 3.13 থেকে সম্পূর্ণভাবে রিমুভ করা হয়েছে। রেফারেন্সের জন্য দেখুন: https://github.com/python/cpython/blob/8d42e2d915c3096e7eac1c649751d1da567bb7c3/Doc/whatsnew/3.13.rst?plain=1#L188। আরও তথ্য পাবেন: https://manned.org/2to3।
2to3 {{ফাইল.py/এর/পাথ}}
2to3 {{[-w|--write]}} {{ফাইল.py/এর/পাথ}}
2to3 {{[-w|--write]}} {{ফাইল.py/এর/পাথ}} {{[-f|--fix]}} {{raw_input}} {{[-f|--fix]}} {{প্রিন্ট}}
2to3 {{[-w|--write]}} {{ফাইল.py/এর/পাথ}} {{[-x|--nofix]}} {{has_key}} {{[-x|--nofix]}} {{isinstance}}
2to3 {{[-l|--list-fixes]}}
2to3 {{[-o|--output-dir]}} {{python3_ডিরেক্টরি/এর/পাথ}} {{[-W|--write-unchanged-files]}} {{[-n|--nobackups]}} {{python2_ডিরেক্টরি/এর/পাথ}}
2to3 {{[-j|--processes]}} {{4}} {{[-o|--output-dir]}} {{python3_ডিরেক্টরি/এর/পাথ}} {{[-w|--write]}} {{[-n|--nobackups]}} --no-diffs {{python2_ডিরেক্টরি/এর/পাথ}}