Commit Graph

22788 Commits

Author SHA1 Message Date
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