Skip to content

Commit

Permalink
python: new examples (#2457)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalebo authored and mfrw committed Oct 17, 2018
1 parent aaedbfe commit 2063dfd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pages/common/python.md
Expand Up @@ -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}}`

0 comments on commit 2063dfd

Please sign in to comment.