about summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorAlejandro Sánchez Medina <alejandrosanchzmedina@gmail.com>2023-08-07 23:48:22 +0200
committerGitHub <noreply@github.com>2023-08-07 23:48:22 +0200
commitc72480119a620e6dd3a90a3a3440831686ce514e (patch)
treec13c93950bb8ff218359db80e2f180216bc6198c /doc/languages-frameworks
parent00345950f6e70af77e779531a441b23e80c6941e (diff)
downloadnixlib-c72480119a620e6dd3a90a3a3440831686ce514e.tar
nixlib-c72480119a620e6dd3a90a3a3440831686ce514e.tar.gz
nixlib-c72480119a620e6dd3a90a3a3440831686ce514e.tar.bz2
nixlib-c72480119a620e6dd3a90a3a3440831686ce514e.tar.lz
nixlib-c72480119a620e6dd3a90a3a3440831686ce514e.tar.xz
nixlib-c72480119a620e6dd3a90a3a3440831686ce514e.tar.zst
nixlib-c72480119a620e6dd3a90a3a3440831686ce514e.zip
nixpkgs manual, doc Python: render interpreters in a table (#246956)
* nixpkgs manual, doc Python: render interpreters in a table

The current paragraph presenting Python interpreters is verbose and hinders clarity. The information provided is well suited to be rendered as a table.

Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com>

* nixpkgs manual, doc Python: fix typos in interpreters' table

* nixpkgs manual, doc Python: update header in interpreters' table

* nixpkgs manual, doc Python: get rid of empty block code workaround in interpreters' table

---------

Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com>
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r--doc/languages-frameworks/python.section.md19
1 files changed, 12 insertions, 7 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md
index 947ce6028659..4d6dd876abd1 100644
--- a/doc/languages-frameworks/python.section.md
+++ b/doc/languages-frameworks/python.section.md
@@ -997,13 +997,18 @@ and in this case the `python3` interpreter is automatically used.
 
 ### Interpreters {#interpreters}
 
-Versions 2.7, 3.8, 3.9, 3.10 and 3.11 of the CPython interpreter are available
-as respectively `python27`, `python38`, `python39`, `python310` and `python311`.
-The aliases `python2` and `python3` correspond to respectively `python27` and
-`python310`. The attribute `python` maps to `python2`. The PyPy interpreters
-compatible with Python 2.7 and 3 are available as `pypy27` and `pypy3`, with
-aliases `pypy2` mapping to `pypy27` and `pypy` mapping to `pypy2`. The Nix
-expressions for the interpreters can be found in
+| Package    | Aliases         | Interpreter |
+|------------|-----------------|-------------|
+| python27   | python2, python | CPython 2.7 |
+| python38   |                 | CPython 3.8 |
+| python39   |                 | CPython 3.9 |
+| python310  | python3         | CPython 3.10 |
+| python311  |                 | CPython 3.11 |
+| python312  |                 | CPython 3.12 |
+| pypy27     | pypy2, pypy     | PyPy2.7 |
+| pypy39     | pypy3           | PyPy 3.9 |
+
+The Nix expressions for the interpreters can be found in
 `pkgs/development/interpreters/python`.
 
 All packages depending on any Python interpreter get appended