Commit Graph

22806 Commits

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