From 8e56c88b5776056d9bd70b1a41825fed36aaefc1 Mon Sep 17 00:00:00 2001 From: Antoine Amara Date: Sun, 24 Oct 2021 14:14:06 +0200 Subject: [PATCH] pypy: add page (#7164) --- pages/common/pypy.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/pypy.md diff --git a/pages/common/pypy.md b/pages/common/pypy.md new file mode 100644 index 00000000000000..7b2a06bf3d4f7e --- /dev/null +++ b/pages/common/pypy.md @@ -0,0 +1,32 @@ +# pypy + +> Fast and compliant alternative implementation of the Python language. +> More information: . + +- Start a REPL (interactive shell): + +`pypy` + +- Execute script in a given Python file: + +`pypy {{path/to/file.py}}` + +- Execute script as part of an interactive shell: + +`pypy -i {{path/to/file.py}}` + +- Execute a Python expression: + +`pypy -c "{{expression}}"` + +- Run library module as a script (terminates option list): + +`pypy -m {{module}} {{arguments}}` + +- Install a package using pip: + +`pypy -m pip install {{package_name}}` + +- Interactively debug a Python script: + +`pypy -m pdb {{path/to/file.py}}`