summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-19698: Document when importlib.machinery.FrozenImporter gained ↵Miss Islington (bot)2020-03-261-0/+4
| | | | | | | | | spec-related methods (GH-19158) (#19164) (cherry picked from commit 302e5a8f79514fd84bafbc44b7c97ec636302322) Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
* bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099) ↵Miss Islington (bot)2020-03-251-1/+2
| | | | | | | | (GH-19141) (cherry picked from commit 4b3252cb764807fdb3a661b458d43e4af55cf4df) Co-authored-by: Juhana Jauhiainen <juhana.jauhiainen@gmail.com>
* Clarify a guarantee of the logging module. (GH-19132)Miss Islington (bot)2020-03-241-0/+1
| | | | | | | 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 9b8e74ca77da7167033917d155e5f55c67b92f14) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-39652: Truncate the column name after '[' only if PARSE_COLNAMES is set. ↵Miss Islington (bot)2020-03-211-3/+4
| | | | | | | (GH-18942) (cherry picked from commit b146568dfcbcd7409c724f8917e4f77433dd56e4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-39797 Changes to socketserver.BaseServer's shutdown() method. (GH-18929)Miss Islington (bot)2020-03-201-0/+2
| | | | | | Automerge-Triggered-By: @ned-deily (cherry picked from commit 2de7ac97981c30e9c1001b05a771f52a41772c54) Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
* Fix "versionchanged" for pow named arguments (GH-19042) (GH-19079)Miss Islington (bot)2020-03-191-1/+1
| | | | | | | 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 c691f209523e20797c7b696c3f171b37429f5b3f) Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
* Link to list of keywords in the laguage reference (GH-18024)Miss Islington (bot)2020-03-141-5/+6
| | | | | (cherry picked from commit 33238ec2af379e837cabc3945db5df8e23bf43e9) Co-authored-by: Борис Верховский <boris.verk@gmail.com>
* bpo-39677: dis: rename the operand of MAKE_FUNCTION from `argc` to `flags` ↵Miss Islington (bot)2020-03-141-1/+1
| | | | | | | for 3.6+ (GC-18550) (cherry picked from commit 6672c16b1d7f83789bf3a2016bd19edfd3568e71) Co-authored-by: Taine Zhao <twshere@outlook.com>
* Fix syntax error in an example in the ast documentation and sync docstrings ↵Miss Islington (bot)2020-03-121-1/+1
| | | | | | | (GH-18946) (cherry picked from commit c00c86b90443dbf3534cc4786a0b42b58db6e8af) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* tracemalloc: 'pretty top' example no longer changes the filename (GH-18903)Miss Islington (bot)2020-03-101-3/+1
| | | | | | | | 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 d06eec218eac81225f9017951cddfc211fed9325) Co-authored-by: Adam Johnson <me@adamj.eu>
* bpo-39852: IDLE 'Go to line' deletes selection, updates status (GH-18801)Miss Islington (bot)2020-03-081-1/+3
| | | | | | | | 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 2522db11df102be3baf25ce9e816ebe8ffdb7fcc) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* IDLE doc: improve Startup failure subsection. (GH-18771)Miss Islington (bot)2020-03-061-7/+10
| | | | | | | | 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 ce305d641074931e4e790f7a83e28f74910644e5) Co-authored-by: Jules Lasne (jlasne) <jules.lasne@gmail.com>
* [3.8] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18783)Miss Islington (bot)2020-03-051-1/+1
| | | | | | | | (cherry picked from commit 67152d0ed670227b61b5df683655b196ab04ca1a) Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> Automerge-Triggered-By: @brettcannon
* Add a missing space after a period in 'typing.TypedDict' documentation ↵Miss Islington (bot)2020-03-051-1/+1
| | | | | | | (GH-18784) (cherry picked from commit d4a09c13ddd91a9bc1b4ba76ff4e8a153334a1e2) Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
* Fix misleading statement about mixed-type numeric comparisons (GH-18615) ↵Miss Islington (bot)2020-03-041-2/+4
| | | | | | | | | | (#18773) (cherry picked from commit 9f1cb1bb49476246de5d9ed5fe680301cf7f7571) Co-authored-by: Mark Dickinson <mdickinson@enthought.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* bpo-39674: Update collections ABC deprecation doc (GH-18748)Victor Stinner2020-03-031-2/+2
|
* [3.8] Fix syntax (GH-18716)Stefan Krah2020-02-291-1/+1
|
* [3.8] bpo-39794: Add --without-decimal-contextvar (GH-18702)Stefan Krah2020-02-291-3/+12
| | | (cherry picked from commit 815280eb160af637e1347213659f9236adf78f80)
* bpo-39718: add TYPE_IGNORE, COLONEQUAL to py38 changes in token (GH-18598)Miss Islington (bot)2020-02-281-1/+1
| | | | | (cherry picked from commit c2f7eb254bee036afc8a71437ec6aac82f06a1ce) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
* bpo-13790: Change 'string' to 'specification' in format doc (GH-18690)Miss Islington (bot)2020-02-281-2/+2
| | | | | (cherry picked from commit 916895f93905f8b8dad677cceff501833f5a633a) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-39128: Added algorithm description (GH-18624)Miss Islington (bot)2020-02-241-0/+11
| | | | | | | | | | | 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 8af4712a16e4b7d1b60f1faec13cd7a88da95f6a) Co-authored-by: idomic <michael.ido@gmail.com>
* bpo-39654: Update pyclbr doc to reflect additional information returned ↵Miss Islington (bot)2020-02-241-3/+6
| | | | | | | | | | | (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 aea045adb8c90394264908670cbc495c5a41b65e) Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
* bpo-39576: Clarify the word size for the 32-bit build. (GH-18616) (#18618)Miss Islington (bot)2020-02-231-2/+2
| | | | | | | (cherry picked from commit b76518d43fb82ed9e5d27025d18c90a23d525c90) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-39576: docs: set context for decimal arbitrary precision arithmetic ↵Miss Islington (bot)2020-02-211-8/+58
| | | | | | | | (GH-18594) (#18597) (cherry picked from commit a025d4ca99fb4c652465368e0b4eb03cf4b316b9) Authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-38657: Clarify numeric padding behaviour in string formatting (GH-17036)Miss Islington (bot)2020-02-211-2/+3
| | | | | | | | | | | 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 424e5686d82235e08f8108b8bbe034bc91421689) Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
* bpo-39572: Document ’total’ flag of TypedDict (GH-18554)Miss Islington (bot)2020-02-191-2/+14
| | | | | (cherry picked from commit ab6423fe2de0ed5f8a0dc86a9c7070229326b0f0) Co-authored-by: ananthan-123 <ananthakrishnan15.2001@gmail.com>
* bpo-32892: Update the documentation for handling constants in AST. (GH-18514)Miss Islington (bot)2020-02-171-3/+7
| | | | | (cherry picked from commit 85a2eef473a2c9ed3ab9c6ee339891fe99adbbc9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`, ↵Steve Dower2020-02-137-0/+117
| | | | | | `resource`, `shutil`, `signal`, `syslog` (GH-18407) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)Miss Islington (bot)2020-02-111-6/+0
| | | | | | | | | | | | 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 4eb9f4313cfaea6a9611221024a1c54f5662cc37) Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
* bpo-39594: Fix typo in os.times documentation (GH-18443)Miss Islington (bot)2020-02-101-4/+2
| | | | | | | | There was an extra space in the url markup, causing the documentation not rendered properly. https://bugs.python.org/issue39594 (cherry picked from commit 37c55b2b49a3acb7c56c9f6a5062bc6e4e35bc1c) Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
* bpo-13826: Clarify Popen constructor example (GH-18438)Miss Islington (bot)2020-02-101-2/+8
| | | | | | | | | 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 95d024d585bd3ed627437a2f0cbc783c8a014c8a) Co-authored-by: Tim D. Smith <github@tim-smith.us>
* Issue3950: Fix docs for default locale used by gettext to match ↵Miss Islington (bot)2020-02-101-2/+2
| | | | | | | | implementation (GH-18435) documentation for default locale directory Doc/library/gettext.rst changed to match gettext implementation line 63. (cherry picked from commit d68e0a8a165761604e820c8cb4f20abc735e717f) Co-authored-by: Carl <Carl-Ty@users.noreply.github.com>
* bpo-39128: Added happy_eyeballs_delay, interleave to function signature ↵Miss Islington (bot)2020-02-101-2/+3
| | | | | | | (GH-18315) (cherry picked from commit 5305cc9dbfe8a5a0ab666511f3ba7f026c8983f8) Co-authored-by: idomic <michael.ido@gmail.com>
* Doc: sys.__unraisablehook__ and bytearray.hex separators are new in 3.8 ↵Miss Islington (bot)2020-02-082-3/+15
| | | | | | | | | | | (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 0edc2c7678266c39a7ceb2df885cb050f887e32b) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* bpo-39184: Add audit events to command execution functions in os and pty ↵Miss Islington (bot)2020-02-052-0/+11
| | | | | | | modules (GH-17824) (cherry picked from commit 95f60010219e142a436fae18e1695cbc45407afe) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* fixes typos in http.client documentation (GH-18300)Miss Islington (bot)2020-02-031-2/+2
| | | | | (cherry picked from commit b94737a4af96b29bd4c025724f671e7bc0f6b6f1) Co-authored-by: James Corbett <james.h.corbett@gmail.com>
* bpo-36018: Minor fixes to the NormalDist() examples and recipes. (GH-18226) ↵Miss Islington (bot)2020-01-281-5/+5
| | | | | | | | | | | | | (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 01bf2196d842fc20667c5336e0a7a77eb4fdc25c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-39392: Turtle overlap fill depends on OS (GH-18223)Miss Islington (bot)2020-01-271-0/+5
| | | | | | | | 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 2824c45a0a020f12f27da7e7162e8636c21bf869) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-36018: Add another example for NormalDist() (GH-18191) (GH-18192)Miss Islington (bot)2020-01-261-0/+36
|
* bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872) ↵Miss Islington (bot)2020-01-251-1/+1
| | | | | | | | (GH-17875) (cherry picked from commit 2e9012a3e1e316c54e27f51ba5849ba06eab7da2) Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
* bpo-36654: Add examples for using tokenize module programmatically (GH-18187)Miss Islington (bot)2020-01-251-0/+19
| | | | | | (cherry picked from commit 4b09dc79f4d08d85f2cc945563e9c8ef1e531d7b) Co-authored-by: Windson yang <wiwindson@outlook.com>
* bpo-39413: os.unsetenv() is not available on Windows (GH-18108)Victor Stinner2020-01-221-1/+1
| | | Update os.unsetenv() documentation: it is not available on Windows.
* improve the documentation of the LOAD_METHOD and CALL_METHOD (GH-18079)Miss Islington (bot)2020-01-211-8/+10
| | | | | (cherry picked from commit 8698b34b68065b80bd9bd18b8decb425208fa386) Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* bpo-39383: Mention Darwin as a potential value for platform.system() (GH-18054)Miss Islington (bot)2020-01-201-3/+2
| | | | | (cherry picked from commit 8d57a4182f0aa68e16d66dea31ba59e732612b4f) Co-authored-by: Peter Bittner <django@bittner.it>
* Fix asyncio.get_event_loop() documentation (GH-18051)Miss Islington (bot)2020-01-201-2/+4
| | | | | | Mention that the function implicitly creates new event loop only if called from the main thread. (cherry picked from commit 2c49becc69c05934996a00b902e4a4f089b91954) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* Fix Lock.locked() to remove extra bold highlighting (GH-18042) (#18043)Miss Islington (bot)2020-01-171-0/+1
| | | | | | | | (cherry picked from commit ef8844f1bcbea994a2a69b5a70309369d08b555c) Co-authored-by: Grant Jenks <grant.jenks@gmail.com> Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
* bpo-39348: Fix code highlight for the SOCK_NONBLOCK example (GH-18018)Miss Islington (bot)2020-01-161-1/+3
| | | | | | | | | | | 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 fad8b5674c66d9e00bb788e30adddb0c256c787b) Co-authored-by: Oz N Tiram <oz.tiram@noris.de>
* [3.8] Fix typo in multiprocessing.pool.AsyncResult.successful doc. ↵Miss Islington (bot)2020-01-151-1/+1
| | | | | | | | | | | | | | | | (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 dc0284ee8f7a270b6005467f26d8e5773d76e959) Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com> Automerge-Triggered-By: @pitrou
* Fix documentation in code.py (GH-17988)Miss Islington (bot)2020-01-141-1/+1
| | | | | (cherry picked from commit b4cdb3f60e71888d7f3d4e0d40cb31e968ea160c) Co-authored-by: Kyle Pollina <kylepollina@protonmail.com>
* bpo-39310: Update sys.float_info documentation (GH-17982)Victor Stinner2020-01-131-8/+8
| | | Specify that sys.float_info.min is only the minimum normalized float.