Skip to content

Commit 2e89fdd

Browse files
Deploy preview for PR 1193 🛫
1 parent e4ea9ed commit 2e89fdd

File tree

584 files changed

+23124
-6263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

584 files changed

+23124
-6263
lines changed
Lines changed: 84 additions & 0 deletions
Loading

pr-preview/pr-1193/_sources/faq/programming.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,6 +1852,8 @@ to the object:
18521852
13891296
18531853

18541854

1855+
.. _faq-identity-with-is:
1856+
18551857
When can I rely on identity tests with the *is* operator?
18561858
---------------------------------------------------------
18571859

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
:orphan:
2+
3+
****************************
4+
Improve a documentation page
5+
****************************
6+
7+
.. This is the no-javascript version of this page. The one most people
8+
will see (with JavaScript enabled) is improve-page.rst. If you edit
9+
this page, please also edit that one, and vice versa.
10+
11+
.. only:: html and not epub
12+
13+
We are always interested to hear ideas about improvements to the documentation.
14+
15+
.. only:: translation
16+
17+
If the bug or suggested improvement concerns the translation of this
18+
documentation, open an issue or edit the page in
19+
`translation's repository <TRANSLATION_REPO_>`_ instead.
20+
21+
You have a few ways to ask questions or suggest changes:
22+
23+
- You can start a discussion about the page on the Python discussion forum.
24+
This link will start a topic in the Documentation category:
25+
`New Documentation topic <https://discuss.python.org/new-topic?category=documentation>`_.
26+
27+
- You can open an issue on the Python GitHub issue tracker. This link will
28+
create a new issue with the "docs" label:
29+
`New docs issue <https://github.com/python/cpython/issues/new?template=documentation.yml>`_.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
:orphan:
2+
3+
****************************
4+
Improve a documentation page
5+
****************************
6+
7+
.. This is the JavaScript-enabled version of this page. Another version
8+
(for those with JavaScript disabled) is improve-page-nojs.rst. If you
9+
edit this page, please also edit that one, and vice versa.
10+
11+
.. only:: html and not epub
12+
13+
.. raw:: html
14+
15+
<script>
16+
function applyReplacements(text, params) {
17+
return text
18+
.replace(/PAGETITLE/g, params.get('pagetitle'))
19+
.replace(/PAGEURL/g, params.get('pageurl'))
20+
.replace(/PAGESOURCE/g, params.get('pagesource'));
21+
}
22+
23+
document.addEventListener('DOMContentLoaded', () => {
24+
const params = new URLSearchParams(window.location.search);
25+
const walker = document.createTreeWalker(
26+
document.body,
27+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT,
28+
null
29+
);
30+
31+
while (walker.nextNode()) {
32+
const node = walker.currentNode;
33+
34+
if (node.nodeType === Node.TEXT_NODE) {
35+
node.textContent = applyReplacements(node.textContent, params)
36+
} else if (node.nodeName === 'A' && node.href) {
37+
node.setAttribute('href', applyReplacements(node.getAttribute('href'), params));
38+
}
39+
}
40+
});
41+
</script>
42+
43+
We are always interested to hear ideas about improvements to the documentation.
44+
45+
You were reading "PAGETITLE" at `<PAGEURL>`_. The source for that page is on
46+
`GitHub <https://github.com/python/cpython/blob/main/Doc/PAGESOURCE?plain=1>`_.
47+
48+
.. only:: translation
49+
50+
If the bug or suggested improvement concerns the translation of this
51+
documentation, open an issue or edit the page in
52+
`translation's repository <TRANSLATION_REPO_>`_ instead.
53+
54+
You have a few ways to ask questions or suggest changes:
55+
56+
- You can start a discussion about the page on the Python discussion forum.
57+
This link will start a pre-populated topic:
58+
`Question about page "PAGETITLE" <https://discuss.python.org/new-topic?category=documentation&title=Question+about+page+%22PAGETITLE%22&body=About+the+page+at+PAGEURL%3A>`_.
59+
60+
- You can open an issue on the Python GitHub issue tracker. This link will
61+
create a new pre-populated issue:
62+
`Docs: problem with page "PAGETITLE" <https://github.com/python/cpython/issues/new?template=documentation.yml&title=Docs%3A+problem+with+page+%22PAGETITLE%22&description=The+page+at+PAGEURL+has+a+problem%3A>`_.
63+
64+
- You can `edit the page on GitHub <https://github.com/python/cpython/blob/main/Doc/PAGESOURCE?plain=1>`_
65+
to open a pull request and begin the contribution process.

0 commit comments

Comments
 (0)