Commit Graph

22883 Commits

Author SHA1 Message Date
Miss Islington (bot) 22a4849cd8
Minor modernization and readability improvement to the tokenizer example (GH-19558) (GH-19661)
(cherry picked from commit bf1a81258c)
2020-04-22 13:50:32 -07:00
Miss Islington (bot) 7d65c045de
Small improvements to the recipes and examples. (GH-19635) (GH-19638)
* Add underscores to long numbers to improve readability
* Use bigger dataset in the bootstrapping example
* Convert single-server queue example to more useful multi-server queue
(cherry picked from commit d3a8d616fa)
2020-04-21 16:18:49 -07:00
Miss Islington (bot) 8c07343976
bpo-39285: Clarify example for PurePath.match (GH-19458)
Fixes Issue39285

The example incorrectly returned True for match.

Furthermore the example is ambiguous in its usage of PureWindowsPath.
Windows is case-insensitve, however the underlying match functionality
utilizes fnmatch.fnmatchcase.

Automerge-Triggered-By: @pitrou
(cherry picked from commit c12375aa0b)

Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
2020-04-19 03:03:35 -07:00
Miss Islington (bot) 020f2aaaea
bpo-27635: Fix pickle documentation about `__new__` not being called. (GH-19269)
Automerge-Triggered-By: @pitrou
(cherry picked from commit 482259d0dc)

Co-authored-by: Furkan Önder <furkantahaonder@gmail.com>
2020-04-18 11:14:55 -07:00
Miss Islington (bot) 08b640f572
Fix parameter names in assertIn() docs (GH-18829)
The names "member" and "container" for the arguments are also used in the module and shown with the help() function, and are immediately understandable in this context, contrary to "first" and "second".
(cherry picked from commit a388bbd3f1)

Co-authored-by: Christoph Zwerschke <cito@online.de>
2020-04-16 19:06:11 -07:00
Miss Islington (bot) 3e72de9e08
[3.8] bpo-39667: Sync zipp 3.0 (GH-18540) (GH-18701)
* bpo-39667: Sync zipp 3.0 (GH-18540)

* bpo-39667: Improve pathlib.Path compatibility on zipfile.Path and correct performance degradation as found in zipp 3.0

* 📜🤖 Added by blurb_it.

* Update docs for new zipfile.Path.open

* Rely on dict, faster than OrderedDict.

* Syntax edits on docs

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 0aeab5c438)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

* Clarify the change in behavior with a couple of workaround options.

* Restore API compatibility while backporting performance improvements.

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2020-04-15 14:45:25 -04:00
Miss Islington (bot) ee691b078b
[3.8] Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454) (GH-19495)
(cherry picked from commit 85dd6bb1f6)


Co-authored-by: laike9m <laike9m@users.noreply.github.com>

Automerge-Triggered-By: @zhangyangyu
2020-04-12 20:01:53 -07:00
Miss Islington (bot) ceba0648d7
bpo-38501: Add a warning section to multiprocessing.Pool docs about resource managing (GH-19466)
(cherry picked from commit 7ec43a7309)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-04-10 19:11:17 -07:00
Miss Islington (bot) 1bf7dee8d3
bpo-40197: Better describe the benchmark results table (GH-19386)
(cherry picked from commit c63629e7c0)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2020-04-10 13:00:15 -07:00
Victor Stinner 37a257c0ae
bpo-40204: Pin Sphinx version to 1.8.2 in Doc/Makefile (GH-19442) 2020-04-09 00:36:13 +02:00
Miss Islington (bot) f7b0259d0d
Fix misinformation about NaN != NaN comparison (GH-19357) (GH-19383)
(cherry picked from commit 810f68f128)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2020-04-05 10:56:37 +01:00
Serhiy Storchaka 0d1d7c8bae
bpo-36320: Use the deprecated-removed directive for _field_types (GH-19370) 2020-04-05 00:43:07 +03:00
Miss Islington (bot) e6783981df
bpo-40131: Fix source and target order in zipapp example (GH-19290) (GH-19339)
(cherry picked from commit bd6a4c3d72)


Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-04-03 22:43:58 +05:30
Miss Islington (bot) 77c623ba3d
bpo-40122: Updated documentation for dis.findlabels() (GH-19274)
(cherry picked from commit b74468e233)

Co-authored-by: laike9m <laike9m@users.noreply.github.com>
2020-04-03 01:07:16 -07:00
Miss Islington (bot) b7345c24a4
bpo-38972: Link to instructions to change PowerShell execution policy (GH-19131)
(cherry picked from commit 45217af29c)

Co-authored-by: Derek Keeler <d3r3kk@users.noreply.github.com>
2020-04-02 12:19:41 -07:00
Miss Islington (bot) 267afc2ab2
bpo-40094: Enhance os.WIFEXITED documentation (GH-19244) (GH-19277)
(cherry picked from commit 7c72383f95)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-04-02 01:26:55 +02:00
Victor Stinner 40e1b04e38
Document most common signals (GH-19245) (GH-19257)
Document individual signals (only the most common signals):
description, default action, availability.

(cherry picked from commit 400e1dbcad)
2020-03-31 19:44:28 +02:00
Miss Islington (bot) 6c9a2a831e
fix comma location in various places (GH-19233)
(cherry picked from commit c49016e67c)

Co-authored-by: Mathieu Dupuy <deronnax@users.noreply.github.com>
2020-03-30 14:34:31 -07:00
Miss Islington (bot) bb852266b7
bpo-40045: Make "dunder" method documentation easier to locate (GH-19153) (GH-19198)
* issue 40045

* Update lexical_analysis.rst

Make "dunder" method documentation easier(GH-19153)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
(cherry picked from commit 5f9c131c09)

Co-authored-by: Javad Mokhtari <javadmokhtari@outlook.com>

Co-authored-by: Javad Mokhtari <javadmokhtari@outlook.com>
2020-03-27 16:15:11 -03:00
Miss Islington (bot) 9c5c497ac1
bpo-38237: Use divmod for positional arguments whatsnew example (GH-19171)
(cherry picked from commit 5a58c5280b)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
2020-03-27 09:45:05 -07:00
Miss Islington (bot) 8dad09a224
bpo-19698: Document when importlib.machinery.FrozenImporter gained spec-related methods (GH-19158) (#19164)
(cherry picked from commit 302e5a8f79)

Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>

Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
2020-03-26 10:15:05 -07:00
Miss Islington (bot) 96686c761d
bpo-39879: Update datamodel docs to include dict ordering (GH-19006)
Co-authored-by: furkanonder <furkantahaonder@gmail.com>
(cherry picked from commit 59c644eaa7)

Co-authored-by: Lahfa Samy <lahfa121999@gmail.com>
2020-03-26 08:00:46 -07:00
Miss Islington (bot) 2227c1a4ca
bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099) (GH-19141)
(cherry picked from commit 4b3252cb76)


Co-authored-by: Juhana Jauhiainen <juhana.jauhiainen@gmail.com>
2020-03-25 12:30:53 +05:30
Miss Islington (bot) 8cd48b60fd
Clarify a guarantee of the logging module. (GH-19132)
When no additional arguments are passed to logging.debug() and related
methods, no % operation is performed on the passed in message.
(cherry picked from commit 9b8e74ca77)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2020-03-24 09:54:40 -07:00
Miss Islington (bot) 687f5921a4
bpo-39652: Truncate the column name after '[' only if PARSE_COLNAMES is set. (GH-18942)
(cherry picked from commit b146568dfc)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-03-21 07:32:25 -07:00
Miss Islington (bot) 29723368e7
bpo-39797 Changes to socketserver.BaseServer's shutdown() method. (GH-18929)
Automerge-Triggered-By: @ned-deily
(cherry picked from commit 2de7ac9798)

Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
2020-03-20 01:08:52 -07:00
Miss Islington (bot) 2477aed12d
Fix "versionchanged" for pow named arguments (GH-19042) (GH-19079)
The ability to use named arguments in "pow" was introduced in Python 3.8, not Python 3.9. See https://bugs.python.org/issue38237
(cherry picked from commit c691f20952)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2020-03-19 18:35:02 +00:00
Miss Islington (bot) da1fe768e5
bpo-39973: Fix the docs for PyObject_GenericSetDict() (GH-19026)
PyObject_GenericSetDict() takes three arguments, not two.
(cherry picked from commit a45b695b9f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-03-17 01:25:34 -07:00
Miss Islington (bot) 4abe77c725
bpo-39869: Fix typo in 'Instance objects' section. (GH-18889)
(cherry picked from commit e5e56328af)

Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
2020-03-14 15:13:18 -07:00
Miss Islington (bot) 9c63cd8c63
Link to list of keywords in the laguage reference (GH-18024)
(cherry picked from commit 33238ec2af)

Co-authored-by: Борис Верховский <boris.verk@gmail.com>
2020-03-14 12:14:57 -07:00
Miss Islington (bot) a927e91186
bpo-39677: dis: rename the operand of MAKE_FUNCTION from `argc` to `flags` for 3.6+ (GC-18550)
(cherry picked from commit 6672c16b1d)

Co-authored-by: Taine Zhao <twshere@outlook.com>
2020-03-14 07:45:23 -07:00
Karthikeyan Singaravelan d3af92ecc2
[3.8] Doc: Fix grammar in PyErr_ResourceWarning (GH-18879) (GH-18976)
(cherry picked from commit fdcd53f)

Co-authored-by: Daniel Hahler <git@thequod.de>
2020-03-13 21:02:38 +05:30
Miss Islington (bot) 99ef1ac9a7
Fix syntax error in an example in the ast documentation and sync docstrings (GH-18946)
(cherry picked from commit c00c86b904)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-03-11 18:06:53 -07:00
Miss Islington (bot) 6ce36ed4a7
Fix download.html (GH-18902)
`<tt>` is not allowed.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit 39c34933fc)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-03-10 21:40:04 -07:00
Miss Islington (bot) b26ccfe3f9
tracemalloc: 'pretty top' example no longer changes the filename (GH-18903)
I've used this recipe a couple times and the filename editing has always
been less than useful and something I've removed. This is because many
modules end up losing which package they are located in, e.g. `util/date.py`.
(cherry picked from commit d06eec218e)

Co-authored-by: Adam Johnson <me@adamj.eu>
2020-03-10 11:26:20 -07:00
Miss Islington (bot) a5e821c726
bpo-39852: IDLE 'Go to line' deletes selection, updates status (GH-18801)
It appears standard that moving the text insert cursor away from a selection clears the
selection.  Clearing prevents accidental deletion of a possibly off-screen bit of text.
The update is for Ln and Col on the status bar.
(cherry picked from commit 2522db11df)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-03-08 11:49:44 -07:00
Miss Islington (bot) 765117dc16
fix typo: add space (GH-18853)
Fix typo in cmdline.rst
Add space between the `-m` option and the module name (`timeit`).
(cherry picked from commit c580981ba0)

Co-authored-by: Julin S <48789920+ju-sh@users.noreply.github.com>
2020-03-08 10:58:19 -07:00
Miss Islington (bot) 6df0c47669
bpo-17422: slightly more precise language (GH-18682)
(cherry picked from commit e59334ebc9)

Co-authored-by: Caleb Donovick <cdonovick@users.noreply.github.com>
2020-03-06 10:26:52 -08:00
Miss Islington (bot) 0c71770eee
bpo-39868: Update Language Reference for PEP 572. (GH-18793)
(cherry picked from commit 8bae21962b)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2020-03-05 21:25:15 -08:00
Miss Islington (bot) da9ee00ffe
IDLE doc: improve Startup failure subsection. (GH-18771)
Eliminate repeat of 'Options', reported by Jules Lasne, and improve wording elsewhere.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit ce305d6410)

Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>
2020-03-05 17:35:43 -08:00
Miss Islington (bot) 7b39c474e4
[3.8] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18783)
(cherry picked from commit 67152d0ed6)


Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>

Automerge-Triggered-By: @brettcannon
2020-03-05 10:36:54 -08:00
Miss Islington (bot) 5a3926d559
Add a missing space after a period in 'typing.TypedDict' documentation (GH-18784)
(cherry picked from commit d4a09c13dd)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
2020-03-04 16:18:22 -08:00
Miss Islington (bot) 6c8cc0dbfd
Fix misleading statement about mixed-type numeric comparisons (GH-18615) (#18773)
(cherry picked from commit 9f1cb1bb49)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2020-03-04 11:52:56 +00:00
Victor Stinner 2aa694dd55
bpo-39674: Update collections ABC deprecation doc (GH-18748) 2020-03-03 17:31:24 +01:00
Miss Islington (bot) 1827fc30f4
bpo-39778: Add clarification about tp_traverse and ownership (GH-18754)
Automerge-Triggered-By: @pablogsal
(cherry picked from commit 6df421fe87)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-03-02 19:04:13 -08:00
Stefan Krah 70d7a62c7c
[3.8] Fix syntax (GH-18716) 2020-02-29 22:42:06 +01:00
Stefan Krah 4d7012410c
[3.8] bpo-39794: Add --without-decimal-contextvar (GH-18702)
(cherry picked from commit 815280eb16)
2020-02-29 22:16:32 +01:00
Miss Islington (bot) 7f53d87cb0
bpo-39718: add TYPE_IGNORE, COLONEQUAL to py38 changes in token (GH-18598)
(cherry picked from commit c2f7eb254b)

Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
2020-02-28 15:31:20 -08:00
Miss Islington (bot) 445152e0d3
bpo-13790: Change 'string' to 'specification' in format doc (GH-18690)
(cherry picked from commit 916895f939)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-02-28 12:06:53 -08:00
Steve Dower 343bc06d80
bpo-39699: Don't silence make on Azure and Github CIs (GH-18583)
Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
2020-02-26 19:57:14 +00:00
Miss Islington (bot) c3536b7942
Doc: int -> int or Py_ssize_t (GH-18663)
(cherry picked from commit 57c7a0bdf4)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-02-25 22:11:16 -08:00
Miss Islington (bot) 1f4cf0c22b
bpo-39128: Added algorithm description (GH-18624)
GH- [bpo-39128](https://bugs.python.org/issue39128): happy eyeballs description

GH- [3.9] 39128 - happy eyeballs description (GH-18624)
GH- [3.8] 39128 - happy eyeballs description (GH-18624)

https://bugs.python.org/issue39128
(cherry picked from commit 8af4712a16)

Co-authored-by: idomic <michael.ido@gmail.com>
2020-02-24 07:06:00 -08:00
Miss Islington (bot) 973348427e
bpo-39654: Update pyclbr doc to reflect additional information returned (GH-18528)
Full nested function and class info makes it a module browser.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit aea045adb8)

Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
2020-02-23 18:07:33 -08:00
Miss Islington (bot) c6ecd9c140
bpo-39576: Clarify the word size for the 32-bit build. (GH-18616) (#18618)
(cherry picked from commit b76518d43f)

Authored-by: Stefan Krah <skrah@bytereef.org>
2020-02-23 14:44:28 +01:00
Miss Islington (bot) 91ba44623e
bpo-17422: Language reference should specify restrictions on class namespace (GH-18559)
The language reference now specifies restrictions on class namespaces.  Adapted from a patch by Ethan Furman.
(cherry picked from commit fbe2e0bb8a)

Co-authored-by: ananthan-123 <ananthakrishnan15.2001@gmail.com>
2020-02-22 13:16:17 -08:00
Miss Islington (bot) d6965ff026
bpo-39576: docs: set context for decimal arbitrary precision arithmetic (GH-18594) (#18597)
(cherry picked from commit a025d4ca99)

Authored-by: Stefan Krah <skrah@bytereef.org>
2020-02-21 21:36:42 +01:00
Miss Islington (bot) 9ce361d3bb
fix(doc): set correct RST syntax for c:function (GH-18589)
The current content is not rendered since the syntax is not correct.
(cherry picked from commit d4d17fd2cf)

Co-authored-by: Julien Danjou <julien@danjou.info>
2020-02-21 02:54:00 -08:00
Miss Islington (bot) a207512121
bpo-38657: Clarify numeric padding behaviour in string formatting (GH-17036)
Make the definition of the width more explicit that it includes any
extra signs added by other options.

https://bugs.python.org/issue38657

Automerge-Triggered-By: @Mariatta
(cherry picked from commit 424e5686d8)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
2020-02-20 22:06:18 -08:00
Miss Islington (bot) 44c690112d
bpo-39572: Document ’total’ flag of TypedDict (GH-18554)
(cherry picked from commit ab6423fe2d)

Co-authored-by: ananthan-123 <ananthakrishnan15.2001@gmail.com>
2020-02-18 21:24:51 -08:00
Miss Islington (bot) 988aeba94b
bpo-32892: Update the documentation for handling constants in AST. (GH-18514)
(cherry picked from commit 85a2eef473)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-02-17 01:09:49 -08:00
Miss Islington (bot) 581b8606ca
bpo-39545: Document changes in the support of await in f-strings. (GH-18456)
https://bugs.python.org/issue39545
(cherry picked from commit f632736023)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-02-13 16:03:59 -08:00
Steve Dower a00b5be5f7
bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`, `resource`, `shutil`, `signal`, `syslog` (GH-18407)
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
2020-02-13 08:30:27 +00:00
Miss Islington (bot) 3f8d181446
bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)
Reflecting changes to the code, removed weakref.ReferenceError from weakref.rst and exceptions.rst.

Issue submitter provided evidence that the `weakref.ReferenceError` alias for `ReferenceError` was removed from the code in 2007.  Working with @gvanrossum at PyCascades CPython sprint we looked at the code and confirmed that `weakref.ReferenceError` was no longer in `weakref.py`.

Based on that analysis I removed references `weakref.ReferenceError` from the two documents where it was still being referenced: `weakref.rst` and `exceptions.rst`.

https://bugs.python.org/issue38374
(cherry picked from commit 4eb9f4313c)

Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
2020-02-10 23:02:01 -08:00
Miss Islington (bot) 4d4301782c
bpo-39594: Fix typo in os.times documentation (GH-18443)
There was an extra space in the url markup, causing the documentation not rendered properly.

https://bugs.python.org/issue39594
(cherry picked from commit 37c55b2b49)

Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
2020-02-10 14:57:14 -08:00
Miss Islington (bot) e6690f6cd1
bpo-13826: Clarify Popen constructor example (GH-18438)
Clarifies that the use of `shlex.split` is more instructive than
normative, and provides a simpler example.

https://bugs.python.org/issue13826
(cherry picked from commit 95d024d585)

Co-authored-by: Tim D. Smith <github@tim-smith.us>
2020-02-10 14:57:06 -08:00
Miss Islington (bot) 8ef9e6d59a
Improve grammar in the import system reference documentation (GH-18209)
Replaced the period with a comma.

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

Co-authored-by: Bonifacio de Oliveira <bonifacio.segundo@gmail.com>
2020-02-10 14:37:45 -08:00
Miss Islington (bot) a83d910806
Issue3950: Fix docs for default locale used by gettext to match implementation (GH-18435)
documentation for default locale directory Doc/library/gettext.rst changed to match gettext implementation line 63.
(cherry picked from commit d68e0a8a16)

Co-authored-by: Carl <Carl-Ty@users.noreply.github.com>
2020-02-10 13:24:53 -08:00
Miss Islington (bot) b086ea5edc
Grammar fix in tutorial (GH-18425) (GH-18426)
(cherry picked from commit 3ed4d25158)

Co-authored-by: Don Kirkby <donkirkby@users.noreply.github.com>
2020-02-10 06:40:15 -05:00
Miss Islington (bot) af95d790a8 bpo-39128: Added happy_eyeballs_delay, interleave to function signature (GH-18315)
(cherry picked from commit 5305cc9dbf)

Co-authored-by: idomic <michael.ido@gmail.com>
2020-02-10 01:54:38 -08:00
Miss Islington (bot) 0c915e620d
Doc: sys.__unraisablehook__ and bytearray.hex separators are new in 3.8 (GH-17884)
Minor fix in documentation:

- `sys.__unraisablehook__` is new in version 3.8
- Optional `sep` and `bytes_per_sep` parameters for `bytearray.hex` is also supported in Python 3.8 (just like `bytes.hex`)
(cherry picked from commit 0edc2c7678)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
2020-02-07 16:54:06 -08:00
Miss Islington (bot) 97e00b3c52
bpo-39534: Doc: Clarify return in finally (GH-18324)
(cherry picked from commit 446463f8db)

Co-authored-by: Julien Palard <julien@palard.fr>
2020-02-06 14:23:04 -08:00
Miss Islington (bot) 30096c9365
Fix MinGW library generation command (GH-17917)
To print the exports to stdout, the gendef command requires the option "-". Without this option, no output is generated.
(cherry picked from commit 2545fa8762)

Co-authored-by: Baljak <baljci@hotmail.com>
2020-02-06 22:54:54 +01:00
Miss Islington (bot) 3498ac55bc
bpo-39184: Add audit events to command execution functions in os and pty modules (GH-17824)
(cherry picked from commit 95f6001021)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
2020-02-04 16:32:32 -08:00
Miss Islington (bot) d01ae1b223
bpo-38558: Link to further docs from walrus operator mention in tutorial (GH-16973)
(cherry picked from commit 5807efd4c3)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2020-02-03 09:17:17 -08:00
Miss Islington (bot) db2f3114b2
fixes typos in http.client documentation (GH-18300)
(cherry picked from commit b94737a4af)

Co-authored-by: James Corbett <james.h.corbett@gmail.com>
2020-02-03 04:07:19 -08:00
Miss Islington (bot) d1fa90584f
Doc: Fix external links to functional programming tutorial. (GH-18249)
(cherry picked from commit 35eac4500a)

Co-authored-by: Julien Palard <julien@palard.fr>
2020-01-29 05:17:40 -08:00
Miss Islington (bot) 526523c193
bpo-39153: Clarify C API *SetItem refcounting semantics (GH-18220)
Some of the *SetItem methods in the C API steal a reference to the
given value. This annotates the better behaved ones to assure the
reader that these are not the ones with the inconsistent behaviour.

* 📜🤖 Added by blurb_it.

* make docs consistent with signature

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit e1e80002e2)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
2020-01-29 03:29:35 -08:00
Miss Islington (bot) cee5da8610
bpo-39287: Doc: Add UTF-8 mode section in using/windows. (GH-17935)
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit 148610d88a)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-01-28 02:18:09 -08:00
Miss Islington (bot) 41f4dc3bcf bpo-36018: Minor fixes to the NormalDist() examples and recipes. (GH-18226) (GH-18227)
* Change the source for the SAT data to a primary source.
* Fix typo in the standard deviation
* Clarify that the binomial probabalities are just for the Python room.
(cherry picked from commit 01bf2196d8)

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

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2020-01-27 19:40:14 -08:00
Miss Islington (bot) b487a8ed5b
bpo-39392: Turtle overlap fill depends on OS (GH-18223)
Whether or not overlap regions for self-intersecting polygons
or multiple shapes are filled depends on the operating system graphics,
typeof overlap, and number of overlaps.
(cherry picked from commit 2824c45a0a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-01-27 15:47:08 -08:00
mbarkhau cf9d005547 [3.8] bpo-39390 shutil: fix argument types for ignore callback (GH-18122) 2020-01-28 00:46:29 +01:00
Miss Islington (bot) eebcff8c07 bpo-36018: Add another example for NormalDist() (GH-18191) (GH-18192) 2020-01-25 21:24:13 -08:00
Miss Islington (bot) eec7636bfd bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872) (GH-17875)
(cherry picked from commit 2e9012a3e1)

Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
2020-01-25 14:40:27 -05:00
Miss Islington (bot) 1cf0df4f1b bpo-36654: Add examples for using tokenize module programmatically (GH-18187)
(cherry picked from commit 4b09dc79f4)

Co-authored-by: Windson yang <wiwindson@outlook.com>
2020-01-25 22:34:36 +03:00
Miss Islington (bot) 321491a536 bpo-15243: Document __prepare__ as classmethod (GH-17124)
(cherry picked from commit 7de617455e)

Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
2020-01-25 22:04:16 +03:00
Miss Islington (bot) 079dfe082a Update 3.8.rst (GH-18173) (#18182)
Fixed the name of the contributor (@selik).
(cherry picked from commit 9bfb4a7061)

Co-authored-by: fireattack <human.peng@gmail.com>
2020-01-25 12:33:36 -05:00
Miss Islington (bot) 5a2356be1a
bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
(cherry picked from commit 7142df5ea2)

Co-authored-by: Shanavas M <shanavas.m2@gmail.com>
2020-01-23 10:22:36 -08:00
Victor Stinner f84f65be56
bpo-39413: os.unsetenv() is not available on Windows (GH-18108)
Update os.unsetenv() documentation: it is not available on Windows.
2020-01-22 13:50:40 +01:00
Miss Islington (bot) 41b3e87930 PyLong_AsLongLong() docs should say 'long long' (GH-18082) (GH-18110)
(cherry picked from commit 47be7d0108)

Co-authored-by: Keith Erskine <toastie604@gmail.com>

Co-authored-by: Keith Erskine <toastie604@gmail.com>
2020-01-21 19:22:21 +00:00
Miss Islington (bot) 070e68a59d
improve the documentation of the LOAD_METHOD and CALL_METHOD (GH-18079)
(cherry picked from commit 8698b34b68)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
2020-01-20 17:12:07 -08:00
Miss Islington (bot) c1964e0942
bpo-39383: Mention Darwin as a potential value for platform.system() (GH-18054)
(cherry picked from commit 8d57a4182f)

Co-authored-by: Peter Bittner <django@bittner.it>
2020-01-20 15:28:43 -08:00
Miss Islington (bot) 6aeed01901
Fix asyncio.get_event_loop() documentation (GH-18051)
Mention that the function implicitly creates new event loop only if called from the main thread.
(cherry picked from commit 2c49becc69)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2020-01-20 14:52:35 -08:00
Miss Islington (bot) 34ece35a0d Fix Lock.locked() to remove extra bold highlighting (GH-18042) (#18043)
(cherry picked from commit ef8844f1bc)

Co-authored-by: Grant Jenks <grant.jenks@gmail.com>

Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
2020-01-17 15:02:06 -08:00
Miss Islington (bot) 19bd3a1862
bpo-39348: Fix code highlight for the SOCK_NONBLOCK example (GH-18018)
The previous double colon was wrongly place directly after Therefore.
Which produced a block without syntax highlighting. This fixes it
by separating the double colon from the text. As a result, sphinx now
properly highlights the python code.

https://bugs.python.org/issue39348
(cherry picked from commit fad8b5674c)

Co-authored-by: Oz N Tiram <oz.tiram@noris.de>
2020-01-15 16:01:21 -08:00
Miss Islington (bot) 54abd28b2c
[3.8] Fix typo in multiprocessing.pool.AsyncResult.successful doc. (GH-17932) (GH-18015)
Since 3.7 `successful` raises a `ValueError` as explained in the next text block from the documentation:

_Changed in version 3.7: If the result is not ready, ValueError is raised instead of AssertionError._

No issue associated with this PR.
Should be backported in 3.7 and 3.8.
(cherry picked from commit dc0284ee8f)


Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>

Automerge-Triggered-By: @pitrou
2020-01-15 12:19:21 -08:00
Miss Islington (bot) 9f220e4968
Fix documentation in code.py (GH-17988)
(cherry picked from commit b4cdb3f60e)

Co-authored-by: Kyle Pollina <kylepollina@protonmail.com>
2020-01-14 12:13:59 -08:00
Victor Stinner 9362f8526e
bpo-39310: Update sys.float_info documentation (GH-17982)
Specify that sys.float_info.min is only the minimum normalized float.
2020-01-13 20:24:12 +01:00
Miss Islington (bot) ef0af30e50
bpo-3530: Add advice on when to correctly use fix_missing_locations in the AST docs (GH-17172)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 6680f4a9f5)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
2020-01-12 12:44:33 -08:00
Miss Islington (bot) a240f05456
bpo-39233: Update positional-only section in the glossary (GH-17874)
https://bugs.python.org/issue39233
(cherry picked from commit 9a669d58e8)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-01-12 03:03:15 -08:00
Miss Islington (bot) 20c990229e
bpo-39161: Document multi-phase init modules under Py_NewInterpreter() (GH-17896)
\+ this also adds a stronger warning against sharing objects between (sub-)interpreters.

https://bugs.python.org/issue39161
(cherry picked from commit 6c5d661342)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2020-01-09 04:27:35 -08:00