Commit Graph

737 Commits

Author SHA1 Message Date
Thaddeus1499 e48da72647
[3.9] Remove effbot urls (GH-26308). (#92162)
(cherry picked from commit e9f66aedf4)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2022-05-02 12:22:05 -06:00
Miss Islington (bot) 869a894338
sorting howto: Add clarification on < using __lt__ (GH-92010)
(cherry picked from commit 53ca774497)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
2022-04-29 15:26:51 -07:00
Miss Islington (bot) 31c9e35e53
bpo-32658: Regex docs: Fix metacharacter reference (GH-32230)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 43571a3eea)

Co-authored-by: Mike cm <mikecmcleod@gmail.com>
2022-04-04 20:11:36 -07:00
Miss Islington (bot) 98d57737de
bpo-14911: Corrected generator.throw() documentation (GH-32207)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
(cherry picked from commit 8be7c2bc5a)

Co-authored-by: Dave Goncalves <davegoncalves@gmail.com>
2022-03-31 07:24:39 -07:00
Miss Islington (bot) 83eabc6c8f
Improve discussion about how __getattr__ is invoked. (GH-31435) (GH-31438) 2022-02-20 07:37:00 -06:00
Miss Islington (bot) ee3d050e85
Optimize images by IMGbot (GH-21348)
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
(cherry picked from commit ba650af7d6)

Co-authored-by: Manish Kumar  <manishprivet@protonmail.com>
2022-02-03 23:15:17 -08:00
Miss Islington (bot) da3e9ddde7
[3.9] [Doc] Add info to logging cookbook about running logging socket listeners i… (GH-29838) (GH-29840) 2021-11-29 13:49:20 +00:00
Miss Islington (bot) 496d1aa0b8
bpo-34804: [doc] Rephrase section on side effects in functional.rst for clarity (GH-27989) (GH-28763)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 7af95a1e80)

Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
2021-10-06 17:19:46 +02:00
Miss Islington (bot) ed0d91bafa
Fix 404 link to the pyporting mailing list (GH-27320) (GH-27601)
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 977d99d1cc)

Co-authored-by: Rohit Nishad <47008599+rohitnishad613@users.noreply.github.com>
2021-08-04 21:23:48 +02:00
Miss Islington (bot) 5a0c6abb56
[3.9] bpo-44399: Update logging cookbook to document patterns to be avoided. (GH-27348) (GH-27350)
(cherry picked from commit 9751f85914)
2021-07-25 20:32:15 +01:00
Miss Islington (bot) c816c1c779
Use the zero argument form of super() in examples for Python3 docs. (GH-22314) (GH-25638)
(cherry picked from commit 52cd6d5e1b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-26 15:16:20 -07:00
Miss Islington (bot) 8db72cd342
Add more tests. Fix code excerpt. (GH-25549) (GH-25550) 2021-04-22 20:26:56 -07:00
Miss Islington (bot) 34be48450f
bpo-43917: Fix pure python equivalent for classmethod (GH-25544) (GH-25546)
Reported by Yahor Harunovich.
(cherry picked from commit 14092b5a4a)
2021-04-22 18:16:16 -07:00
Miss Islington (bot) cbfa09b70b
Replace broken example code with correct simpler code. (GH-25162) (GH-25166) 2021-04-03 13:42:43 -07:00
Miss Islington (bot) f12ae0b31a
Add more tests for the descriptor tutorial (GH-25164) (#25165)
(cherry picked from commit e4c8895ee5)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2021-04-03 13:42:28 -07:00
Miss Islington (bot) d104a786ff
bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (GH-25123) (#25140) 2021-04-01 17:06:30 -07:00
Miss Islington (bot) 45d9c8cda3
bpo-43427: Separte the method overview from the static method specifics. (GH-24787) (GH-24849) 2021-03-13 18:31:33 -08:00
Miss Islington (bot) 39aeb9ff90
Simple typo fix (GH-24448)
(cherry picked from commit 5f18c22339)

Co-authored-by: Andrew Tennikoff <atenni@users.noreply.github.com>
2021-02-05 10:44:23 -08:00
Miss Islington (bot) f02ef7afcf
bpo-43082: Remove redundant 'the' in Descriptor howto (GH-24394) (GH-24427) 2021-02-02 19:33:35 -08:00
Miss Islington (bot) dca61e770d
Typo: fix inverted sense of statement (GH-23288) (GH-23512) 2020-11-25 12:14:32 -08:00
Miss Islington (bot) 0aedcff34c
Add more tests to the descriptor howto guide (GH-23506) (GH-23510) 2020-11-25 02:16:32 -08:00
Miss Islington (bot) 543724b972
Add doctests to the descriptor HowTo (GH-23500) (GH-23505) 2020-11-24 22:47:17 -08:00
Miss Islington (bot) 2019e4ff98
Descriptor HowTo: Improve the fidelity of the member object simulation (GH-23475) (GH-23479) 2020-11-23 11:31:45 -08:00
Miss Islington (bot) ec0788c7c9
More updates to the descriptor howto guide (GH-23238) (GH-23308) 2020-11-15 18:27:56 -08:00
Raymond Hettinger 4c239a3222
Minor grammar edits for the descriptor howto guide (GH-#23175) (GH-23186) 2020-11-06 16:46:10 -08:00
Miss Skeleton (bot) 27c72ba45a
Minor formatting edits to the descriptor howto guide (GH-23092) (GH-23095) 2020-11-01 20:55:57 -08:00
Miss Skeleton (bot) d4cfbfe9a2
Add member objects to the descriptor howto guide (GH-23084) (GH-23090) 2020-11-01 18:27:58 -08:00
Miss Skeleton (bot) 81dd2c0914
Expand and clarify the "Invoking Descriptors" section of the Descriptor HowTo (GH-23078) (GH-23080) 2020-11-01 10:09:46 -08:00
Miss Skeleton (bot) 2990aef0c8
Split-out a fourth section in the descriptor HowTo guide (GH-22965) (GH-22969) 2020-10-25 07:35:56 -07:00
Miss Skeleton (bot) 3d43f1dce3
Second round of updates to the descriptor howto guide (GH-22946) (GH-22958) 2020-10-24 20:39:15 -07:00
Miss Skeleton (bot) c17f63fae5
bpo-19072: Update descriptor howto for decorator chaining (GH-22934) (GH-22935) 2020-10-23 19:01:35 -07:00
Miss Skeleton (bot) f8d96b98a4
Create a primer section for the descriptor howto guide (GH-22906) (GH0-22918) 2020-10-23 13:49:32 -07:00
Miss Islington (bot) 014b4ef0a1
Fixes dead links to Django's logging config docs (GH-20823) (GH-22170)
(cherry picked from commit 714217f956)
2020-09-09 14:45:08 +01:00
Victor Stinner 8f88190af5
[3.9] bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844) (GH-21901)
* bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844)

Enable Sphinx 3.2 "c_allow_pre_v3" option and disable the
c_warn_on_allowed_pre_v3 option to make the documentation compatible
with Sphinx 2 and Sphinx 3.

(cherry picked from commit 423e77d6de)

* bpo-40204: Fix Sphinx sytanx in howto/instrumentation.rst (GH-21858)

Use generic '.. object::' to declare markers, rather than abusing
'..  c:function::' which fails on Sphinx 3.

(cherry picked from commit 43577c01a2)

* bpo-40204: Fix duplicates in the documentation (GH-21857)

Fix two Sphinx 3 issues:

Doc/c-api/buffer.rst:304: WARNING: Duplicate C declaration, also defined in 'c-api/buffer'.
Declaration is 'PyBUF_ND'.

Doc/c-api/unicode.rst:1603: WARNING: Duplicate C declaration, also defined in 'c-api/unicode'.
Declaration is 'PyObject* PyUnicode_Translate(PyObject *str, PyObject *table, const char *errors)'.

(cherry picked from commit 46d10b1237)

* bpo-40204: Add :noindex: in the documentation (GH-21859)

Add :noindex: to duplicated documentation to fix "duplicate object
description" errors.

For example, fix this Sphinx 3 issue:

Doc/library/configparser.rst:1146: WARNING: duplicate object
description of configparser.ConfigParser.optionxform, other instance
in library/configparser, use :noindex: for one of them

(cherry picked from commit d3ded08048)

* bpo-40204, doc: Fix syntax of C variables (GH-21846)

For example, fix the following Sphinx 3 errors:

Doc/c-api/buffer.rst:102: WARNING: Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 5]
  void \*obj
  -----^

Doc/c-api/arg.rst:130: WARNING: Unparseable C cross-reference: 'PyObject*'
Invalid C declaration: Expected end of definition. [error at 8]
  PyObject*
  --------^

The modified documentation is compatible with Sphinx 2 and Sphinx 3.

(cherry picked from commit 474652fe93)

* bpo-40204: Fix reference to terms in the doc (GH-21865)

Sphinx 3 requires to refer to terms with the exact case.

For example, fix the Sphinx 3 warning:

Doc/library/pkgutil.rst:71: WARNING: term Loader not found in case
sensitive match.made a reference to loader instead.

(cherry picked from commit bb0b08540c)

* bpo-40204: Fix duplicated productionlist names in the doc (GH-21900)

Sphinx 3 disallows having more than one productionlist markup with
the same name. Simply remove names in this case, since names are not
shown anyway. For example, fix the Sphinx 3 warning:

Doc/reference/introduction.rst:96: duplicate token description
of *:name, other instance in reference/expressions

(cherry picked from commit 1abeda80f7)
2020-08-19 19:25:22 +02:00
Miss Islington (bot) 0124f2b5e0
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21667) 2020-07-28 18:39:10 -07:00
Mathieu Dupuy 65460565df
Doc: change 'Posix' for 'POSIX' (GH-20001) 2020-05-17 23:29:51 +02:00
amaajemyfren 8ea10a9446
closes bpo-40166: Change Unicode Howto so that it does not have a specific number of assigned code points. (GH-19328)
Change the number of code points from a specific number to a link to the latest standard that has a description of how many code points there are.
2020-04-06 23:16:02 -05:00
Benjamin Peterson 51796e5d26
Update some www.unicode.org URLs to use HTTPS. (GH-18912) 2020-03-10 21:10:59 -07:00
Slam 7598a93139
PyPy already supports Python 3 (GH-18774) 2020-03-06 11:08:17 +00:00
Julien Palard 35eac4500a
Doc: Fix external links to functional programming tutorial. (GH-18249) 2020-01-29 14:10:54 +01:00
Juhana Jauhiainen 8271441d8b bpo-39374: Updated sorting documentation (GH-18177) 2020-01-25 14:18:58 -08:00
Oleg Höfling e6ae90dede Replace links in howto/pyporting.rst with sphinx references (GH-17781)
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
2020-01-05 17:08:14 -05:00
Vinay Sajip 5383956583
bpo-38830: Correct slot signature in Qt example. (GH-17220) 2019-11-18 12:03:22 +00:00
Serhiy Storchaka e835b31d2b
bpo-38600: NULL -> ``NULL``. (GH-17001)
Also fix some other formatting.
2019-10-30 21:37:16 +02:00
Greg Price 32a960f8e1 Correct Roman-numeral example in Unicode HOWTO. (GH-15541) 2019-09-08 12:42:13 +03:00
Serhiy Storchaka 5eca7f3f38
bpo-15999: Always pass bool instead of int to socket.setblocking(). (GH-15621) 2019-09-01 12:12:52 +03:00
Raymond Hettinger 03acba6f1a
bpo-25777: Wording describes a lookup, not a call (GH-15573) 2019-08-28 22:59:43 -07:00
Ethan Furman 77df9a1573
correct roman numeral VII description (GH-15523) 2019-08-26 09:12:50 -07:00
Vinay Sajip 472eced677
Refined Qt GUI example in the logging cookbook. (GH-15045) 2019-07-31 07:36:45 +01:00
Vinay Sajip 1ed915e8ae
Add Qt GUI example to the logging cookbook. (GH-14978) 2019-07-27 13:46:53 +01:00