mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 18:06:00 +02:00

* 2to3: Dutch translation * 7za: Dutch translation * 7zr: Dutch translation --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
1.1 KiB
1.1 KiB
2to3
Geautomatiseerde conversie van Python 2 naar 3-code. Meer informatie: https://docs.python.org/3/library/2to3.html.
- Geef de wijzigingen weer die zouden worden uitgevoerd zonder ze uit te voeren (simulatie):
2to3 {{pad/naar/bestand.py}}
- Converteer een Python 2-bestand naar Python 3:
2to3 --write {{pad/naar/bestand.py}}
- Converteer specifieke Python 2-taalfuncties naar Python 3:
2to3 --write {{pad/naar/bestand.py}} --fix={{raw_input}} --fix={{print}}
- Converteer alle Python 2-taalfuncties behalve de gespecificeerde naar Python 3:
2to3 --write {{pad/naar/bestand.py}} --nofix={{has_key}} --nofix={{isinstance}}
- Geef een lijst weer met alle beschikbare taalfuncties die kunnen worden geconverteerd van Python 2 naar Python 3:
2to3 --list-fixes
- Converteer alle Python 2-bestanden in een directory naar Python 3:
2to3 --output-dir={{pad/naar/python3_directory}} --write-unchanged-files --nobackups {{pad/naar/python2_directory}}
- Voer 2to3 uit met meerdere threads:
2to3 --processes={{4}} --output-dir={{pad/naar/python3_directory}} --write --nobackups --no-diff {{pad/naar/python2_directory}}