diff options
author | Manuel Kaufmann <humitos@gmail.com> | 2022-11-01 13:25:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 13:25:33 (GMT) |
commit | f042646595d1cdd2ecdc15222b1766f746d010f0 (patch) | |
tree | 2deddb0a2a8d03f99c17dabff9e3d29c36c3ce30 | |
parent | 395d4285bfba2177719efd826fbb89bf3efcf641 (diff) | |
download | cpython-f042646595d1cdd2ecdc15222b1766f746d010f0.zip cpython-f042646595d1cdd2ecdc15222b1766f746d010f0.tar.gz cpython-f042646595d1cdd2ecdc15222b1766f746d010f0.tar.bz2 |
Doc: use "unnumbered" footnotes (#98954)
Use unnumbered footnote in this file to avoid reseting the footnotes numbering.
Example: when building the tutorial into a PDF and using `latex_show_urls = "footnotes"`; this footnote become the number 8. However, without this change, the footnote shows the number 1.
-rw-r--r-- | Doc/tutorial/datastructures.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 12b00be..c8e89d9 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -122,7 +122,7 @@ An example that uses most of the list methods:: You might have noticed that methods like ``insert``, ``remove`` or ``sort`` that only modify the list have no return value printed -- they return the default -``None``. [1]_ This is a design principle for all mutable data structures in +``None``. [#]_ This is a design principle for all mutable data structures in Python. Another thing you might notice is that not all data can be sorted or @@ -731,5 +731,5 @@ interpreter will raise a :exc:`TypeError` exception. .. rubric:: Footnotes -.. [1] Other languages may return the mutated object, which allows method +.. [#] Other languages may return the mutated object, which allows method chaining, such as ``d->insert("a")->remove("b")->sort();``. |