diff --git a/pages/common/python.md b/pages/common/python.md index 3de2942a00..7260a9d87a 100644 --- a/pages/common/python.md +++ b/pages/common/python.md @@ -10,10 +10,18 @@ `python {{script.py}}` -- Execute Python language single command: +- Execute script as part of an interactive shell: -`python -c {{command}}` +`python -i {{script.py}}` + +- Execute a Python expression: + +`python -c "{{expression}}"` - Run library module as a script (terminates option list): `python -m {{module}} {{arguments}}` + +- Interactively debug a Python script: + +`python -m pdb {{script.py}}`