Commit Graph

22941 Commits

Author SHA1 Message Date
Miss Islington (bot) d423aa8e95
Add missing colon to IDLE doc markup (GH-22007)
(cherry picked from commit 7a797a3967)

Co-authored-by: Andre Delfino <adelfino@gmail.com>

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-09-09 18:34:20 -04:00
Miss Islington (bot) 4c4c354de2
[3.8] [3.9] bpo-41688: Document bug in **= dispatching in the language data… (GH-22172) (GH-22175)
(cherry picked from commit 46bc21e178)


Co-authored-by: Ammar Askar <ammar@ammaraskar.com>

Automerge-Triggered-By: @brettcannon
2020-09-09 11:15:49 -07:00
Miss Islington (bot) 778a9b2c55
Fixes dead links to Django's logging config docs (GH-20823) (GH-22171)
(cherry picked from commit 714217f956)
2020-09-09 14:40:41 +01:00
Miss Islington (bot) 68bc6792b4
[3.8] [doc] Fix padding in timeit (GH-22152) (GH-22159)
Compare -p and -u options help in rendered output to see the difference.
(cherry picked from commit 594f0ce73b)


Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-09-08 16:57:11 -07:00
Miss Islington (bot) 4e581d64b8
closes bpo-41723: Fix an error in the py_compile documentation. (GH-22110)
(cherry picked from commit 5371a464ce)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-09-05 20:47:17 -07:00
Miss Islington (bot) 4ddb2d73ac
[3.8] Improve asyncio-dev 'Concurrency and Multithreading' docs (GH-20882) (GH-22010)
I added some information to the `Concurrency and Multithreading` section of the `Developing with asyncio` guide. 

This is all information that would have helped me when I started using asyncio. I incorrectly assumed that `loop.call_soon_threadsafe()` and `run_coroutine_threadsafe()` could be called from a thread in a process separate from the one that the event loop is running in. Explicitly stating that this will not work will probably help some people starting out with asyncio in the future.

I also added references to some other functions that can be used for inter-process communication without blocking the event loop. The section already mentions running blocking code in a ThreadPoolExecutor, but I think listing these other options in this section will also be helpful.
(cherry picked from commit c68c5af2dc)


Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
2020-09-04 15:30:21 -07:00
Miss Islington (bot) e77547b90c
[3.8] Fix error in argparse documentation example (GH-17399) (GH-21990)
Automerge-Triggered-By: @rhettinger
(cherry picked from commit 8784d3300e)


Co-authored-by: SarahPythonista <4283226+SarahPythonista@users.noreply.github.com>
2020-09-04 15:26:21 -07:00
Miss Islington (bot) e52f5bc898
[3.8] bpo-40486: Specify what happens if directory content change diring iteration (GH-22025) (GH-22094)
(cherry picked from commit 306cfb3a37)


Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-09-04 15:25:51 -07:00
Miss Islington (bot) 1470c9189c
bpo-38585: Remove references to defusedexpat (GH-22095)
defusedexpat is not maintained.
(cherry picked from commit 51b84f8e96)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-09-04 15:25:04 -07:00
Miss Islington (bot) 9fef7c54a0
bpo-39883: Use BSD0 license for code in docs (GH-17635) (GH-22074)
The PSF board approved this use.
(cherry picked from commit e223d06a8b)

Co-authored-by: Todd <toddrjen@gmail.com>
2020-09-03 07:41:09 -07:00
Miss Islington (bot) 5d663ededd
[doc] Remove references to PyChecker. (GH-22055)
(cherry picked from commit dea82b6731)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-09-02 08:29:46 -05:00
Miss Islington (bot) a8b05c4b97
Remove reference to Boa Constructor. (GH-22057)
(cherry picked from commit 1d25f5bf7b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-09-02 08:28:59 -05:00
Miss Islington (bot) a1473d2c91
bpo-41634: Fix a typo in the curses documentation (GH-21958)
(cherry picked from commit 398575c210)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-08-29 18:33:26 -04:00
Karthikeyan Singaravelan 838316db08
[3.8] bpo-41624: fix documentation of typing.Coroutine (GH-21952). (#21983)
(cherry picked from commit 8c58d2a216)

Co-authored-by: MingZhe Hu <humingzhework@163.com>

Co-authored-by: MingZhe Hu <humingzhework@163.com>
2020-08-28 08:03:40 -07:00
Miss Islington (bot) 08045391a7
Document vars behavior when __dict__ is missing (GH-21466) (GH-21941)
(cherry picked from commit 802726acf6)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-08-22 16:15:29 -03:00
Miss Islington (bot) e94d5db512
Fix grammar in Doc/tutorial/controlflow.rst (GH-21885) (#21923)
Automerge-Triggered-By: @csabella
(cherry picked from commit 0be7c216e1)

Co-authored-by: Denis Ovsienko <denis@ovsienko.info>
2020-08-22 05:07:43 -04:00
Miss Islington (bot) 0694b82381
bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH-21880) (#21927)
Use a less surprising document structure.

Automerge-Triggered-By: @csabella
(cherry picked from commit 2ce39631f6)

Co-authored-by: Sydney Pemberton <46042811+sydneypemberton1986@users.noreply.github.com>
2020-08-22 05:06:14 -04:00
Victor Stinner 7d0fef56d8
bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844) (GH-21901) (GH-21928)
* 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)
(cherry picked from commit 8f88190af5)
2020-08-20 13:28:49 +02:00
Miss Islington (bot) 0a5b30d989
Fix typo in typing doc (GH-21879)
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit fa5d725198)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-08-14 16:09:58 -07:00
Miss Islington (bot) 2a9f709ba2
bpo-41410: Fix outdated info in mkstemp docs (GH-21701)
Automerge-Triggered-By: @ericvsmith
(cherry picked from commit e55de68be3)

Co-authored-by: Rishav Kundu <rk@rishav.io>
2020-08-13 18:51:21 -07:00
Miss Islington (bot) e05f20b371
Fixed comment about pathlib.link_to: it was added in 3.8, not changed. (GH-21851) (#21866)
(cherry picked from commit a3eae43aee)

Co-authored-by: Facundo Batista <facundo@taniquetil.com.ar>
2020-08-13 17:43:47 -03:00
Antoine Pitrou 43b3e4c329
[3.8] bpo-41066: Update the comparison section for os vs pathlib (GH-21261) (GH-21864)
(cherry picked from commit 0eb9deb4a6)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్  రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>

Automerge-Triggered-By: @pitrou
2020-08-13 13:03:18 -07:00
Miss Islington (bot) 622d90f65c
bpo-41475: Fix note in "What's new in 3.7" (GH-21733) (GH-21833)
(cherry picked from commit 76643c10ed)

Co-authored-by: Ram Rachum <ram@rachum.com>
2020-08-12 06:38:37 -04:00
Miss Islington (bot) 7b3ceaa710
[3.8] bpo-41504: Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773) (GH-21829)
(cherry picked from commit e3c971ccfa)

Co-authored-by: Edward K. Ream <edreamleo@gmail.com>

https://bugs.python.org/issue41504
2020-08-11 07:45:25 -07:00
Miss Islington (bot) f421865c76
[3.8] Doc: Add output to example code in programming FAQ (GH-21346) (GH-21791)
Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.htmlGH-how-do-i-write-a-function-with-output-parameters-call-by-reference).

This patch make the output hint just like prefix code block.
(cherry picked from commit 67acf74c4e)


Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>

Automerge-Triggered-By: @merwok
2020-08-09 11:54:33 -07:00
Miss Islington (bot) 105cfb5b18
bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 82ca8fada1)

Co-authored-by: Yaroslav Pankovych <31005942+P-Alban@users.noreply.github.com>
2020-08-08 11:55:45 -07:00
Miss Islington (bot) de5de413e7
Doc: Add a link to tutorial page from `open()` doc (GH-21737)
Adds a link to the "Reading and Writing Files" page so users can
more easily discover how file handles are handled with the `with`
context manager vs without it.
(cherry picked from commit 705f145565)

Co-authored-by: Benjamin Kane <bbkane@users.noreply.github.com>
2020-08-07 20:05:04 -07:00
Miss Islington (bot) dc98a5468a
bpo-41098: Doc: Add missing deprecated directives (GH-21162)
PyUnicodeEncodeError_Create has been deprecated with
`Py_DEPRECATED` macro. But it was not documented.
(cherry picked from commit 46e19b61d3)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-08-07 00:49:46 -07:00
Miss Islington (bot) f0e030cacb
bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)
See PEP 623 for detail.
(cherry picked from commit 270b4ad4df)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-08-04 18:57:10 -07:00
Miss Islington (bot) 4bc8445c39
bpo-41425: Make tkinter doc example runnable (GH-21706)
Co-authored-by: Ankit Chandawala <achandaw@amazon.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit c36dbac588)
2020-08-03 00:25:04 -04:00
Miss Islington (bot) 45d37cbb04
bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)
(cherry picked from commit ecaf949cc4)

Co-authored-by: Nathan M <nathanmaynes@gmail.com>
2020-08-02 20:18:59 -07:00
Miss Islington (bot) 038827d0f5
bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)
Automerge-Triggered-By: @brettcannon
(cherry picked from commit ba18c0b13b)

Co-authored-by: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
2020-07-29 11:44:50 -07:00
Miss Islington (bot) b7722ed0f3
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21668) 2020-07-28 18:39:43 -07:00
Miss Islington (bot) 5e0ce46aeb
Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
(cherry picked from commit 34cd3e9f6a)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
2020-07-28 09:59:18 -07:00
Miss Islington (bot) 59cfba3268
bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)
(cherry picked from commit 5e3826785d)

Co-authored-by: Dmytro Litvinov <litvinov.dmytro.it@gmail.com>
2020-07-28 07:57:11 -07:00
Guido van Rossum 3baff21f5b
[3.8] bpo-41045: Document debug feature of f-strings ('=') (GH-21509) (#21647)
Co-Authored-By: Rishi <rishi93dev@gmail.com>

(cherry picked from commit 13efaec)

Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
2020-07-27 16:22:16 -07:00
Miss Islington (bot) 755cb49429
bpo-39868: Add documentation for Assignment Expressions (walrus, PEP 572) (GH-18851)
(cherry picked from commit f117cef25b)

Co-authored-by: Shankar Jha <shankarj67@gmail.com>
2020-07-25 16:41:20 -07:00
Miss Islington (bot) b99f770230
bpo-41314: fixed annotations __future__ version (GH-21616)
PEP 563 was updated to change the release where `from __future__ import annotations` becomes the default (and only) behavior from 4.0 to 3.10. Update `__future__.py` and its docs to reflect this.
(cherry picked from commit 0028c14073)

Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
2020-07-25 15:00:17 -07:00
Miss Islington (bot) f526d10267
Simple Documentation fix: Missing link to return type class. (GH-21291)
Just a simple documentation fix: apply_async and map_async return a "multiprocessing.pool.AsyncResult Object", not a "result object".
(cherry picked from commit f9bf015799)

Co-authored-by: Volker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com>
2020-07-20 04:35:11 -07:00
Miss Islington (bot) 58f59a9621
bpo-37703: improve asyncio.gather documentation regarding cancellation (GH-15312)
These changes updates the doc to comprehensively mention the behaviour of gather.cancel()

Automerge-Triggered-By: @asvetlov
(cherry picked from commit d42528a3a2)

Co-authored-by: Vinay Sharma <vinay04sharma@icloud.com>
2020-07-20 02:00:51 -07:00
Miss Islington (bot) dac8a3a156
bpo-41205: Document Decimal power 0 to the 0 (GH-21386)
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
(cherry picked from commit 10e466448f)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్  రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
2020-07-19 04:10:47 -07:00
Miss Islington (bot) 700cb66175
bpo-32528: Document the change in inheritance of asyncio.CancelledError (GH-21474)
GH-msg373510

[bpo-32528]()/GH-13528 changed `asyncio.CancelledError` such that it no longer inherits from `concurrent.futures.CancelledError`. As this affects existing code, specifically when catching the latter instead of the former in exception handling, it should be documented in the "What's new in 3.8?" document.

Automerge-Triggered-By: @1st1
(cherry picked from commit 2a5181829a)

Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
2020-07-19 00:50:54 -07:00
Miss Islington (bot) 7734738d71
bpo-41325: Add version note for args and kwargs property in call object (GH-21525)
(cherry picked from commit 9b01c598ca)

Co-authored-by: Jordan Speicher <uSpike@users.noreply.github.com>
2020-07-18 06:13:21 -07:00
Miss Islington (bot) d4a63031da
Remove unnecessary spaces in code blocks in urllib.parse.rst (GH-21500)
This should also fix the syntax highlighting for these code blocks

Automerge-Triggered-By: @csabella
(cherry picked from commit 5e5c0f9866)

Co-authored-by: Christopher Yeh <chrisyeh96@users.noreply.github.com>
2020-07-16 04:29:45 -07:00
Miss Islington (bot) b4cd77de05
Fix repeated words in Classes tutorial (GH-21455)
The phrase "At any time during execution," was repeated twice.

Automerge-Triggered-By: @Mariatta
(cherry picked from commit 4f28f75dee)

Co-authored-by: Paul McMillan <paul@mcmillan.ws>
2020-07-13 18:49:44 -07:00
Miss Islington (bot) c77f71f981
bpo-41228: Fix /a/are/ in monthcalendar() descripton (GH-21372)
(cherry picked from commit 344dce312a)

Co-authored-by: Nima Dini <nima.dini@gmail.com>
2020-07-10 19:09:07 -07:00
Miss Islington (bot) a1d208435c
Fix typo in docs: 'created by th' -> 'created by the' (GH-21384)
(cherry picked from commit 6fc732a211)

Co-authored-by: marload <rladhkstn8@gmail.com>
2020-07-10 08:51:31 -07:00
Miss Islington (bot) 3d1c06e8b9
bpo-37765: Add keywords to IDLE tab completions (GH-15138)
Keywords are present in the main module tab completion lists generated by rlcompleter, which is used by REPLs on *nix. Add all keywords to IDLE's main module name list except those already added from builtins (True, False, and None) . This list may also be used by Show Completions on the Edit menu, and its hot key.

Rewrite Completions doc.

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
(cherry picked from commit bce2eb4646)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-07-09 15:54:44 -07:00
Miss Islington (bot) 1e66f7e102
bpo-41199: Docstring convention not followed for dataclasses documentation page (GH-21413)
Automerge-Triggered-By: @ericvsmith
(cherry picked from commit 61bb24a270)

Co-authored-by: marload <rladhkstn8@gmail.com>
2020-07-09 05:21:11 -07:00
Miss Islington (bot) 730bce3a80
bpo-39417: Fix broken link to guide to building venvs (GH-18432)
(cherry picked from commit c4a65ed7fe)

Co-authored-by: Ogi Moore <ognyan.moore@jacobs.ucsd.edu>
2020-07-07 16:47:09 -07:00