summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* Make the first dataclass example more useful (GH-19994) (GH-19997)Miss Islington (bot)2020-05-081-0/+2
| | | | | | | (cherry picked from commit 2effef7453986bf43a6d921cd471a8bc0722c36a) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* Remove outdated and confusing advice about setting maxsize (GH-19889) (GH-19890)Miss Islington (bot)2020-05-041-2/+1
|
* Fix missing space in docs(GH-19866) (GH-19872)Miss Islington (bot)2020-05-031-1/+1
|
* bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers ↵Miss Islington (bot)2020-05-021-1/+2
| | | | | | | of 10 (GH-19752) (cherry picked from commit 766352320fd736e2c8ed545b4cc57563f61a0b9d) Co-authored-by: Sander <svr003@gmail.com>
* [3.8] bpo-39435: Fix docs for pickle.loads (GH-18160) (GH-19843)Antoine Pitrou2020-05-011-2/+2
| | | | | | | (cherry picked from commit 289842a) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> Automerge-Triggered-By: @pitrou
* bpo-39691: Clarify io.open_code behavior (GH-19824)Miss Islington (bot)2020-05-011-4/+5
| | | | | (cherry picked from commit 831d58d7865cb98fa09227dc614f4f3ce6af968b) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
* bpo-40387: Improve queue join() example. (GH-19724) (GH-19726)Miss Islington (bot)2020-04-271-16/+12
|
* Minor modernization and readability improvement to the tokenizer example ↵Miss Islington (bot)2020-04-221-2/+6
| | | | | (GH-19558) (GH-19661) (cherry picked from commit bf1a81258c0ecc8b52b9dcc53321c066b3ed4a67)
* Small improvements to the recipes and examples. (GH-19635) (GH-19638)Miss Islington (bot)2020-04-211-30/+26
| | | | | | | * 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 d3a8d616faf3364b22fde18dce8c168de9368146)
* bpo-39285: Clarify example for PurePath.match (GH-19458)Miss Islington (bot)2020-04-191-1/+3
| | | | | | | | | | | | | | 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 c12375aa0b838d34067efa3f1b9a1fbc632d0413) Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
* bpo-27635: Fix pickle documentation about `__new__` not being called. (GH-19269)Miss Islington (bot)2020-04-181-3/+3
| | | | | | Automerge-Triggered-By: @pitrou (cherry picked from commit 482259d0dcf27714a84cf56b93977320bea7e093) Co-authored-by: Furkan Önder <furkantahaonder@gmail.com>
* Fix parameter names in assertIn() docs (GH-18829)Miss Islington (bot)2020-04-171-3/+3
| | | | | | 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 a388bbd3f129364c39843f63e92f08bc53c71905) Co-authored-by: Christoph Zwerschke <cito@online.de>
* [3.8] bpo-39667: Sync zipp 3.0 (GH-18540) (GH-18701)Miss Islington (bot)2020-04-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | * 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 0aeab5c4381f0cc11479362af2533b3a391312ac) 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>
* [3.8] Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454) (GH-19495)Miss Islington (bot)2020-04-131-3/+3
| | | | | | | | (cherry picked from commit 85dd6bb1f61f7edcd6ac0b640a98644531690a0e) Co-authored-by: laike9m <laike9m@users.noreply.github.com> Automerge-Triggered-By: @zhangyangyu
* bpo-38501: Add a warning section to multiprocessing.Pool docs about resource ↵Miss Islington (bot)2020-04-111-1/+12
| | | | | | | managing (GH-19466) (cherry picked from commit 7ec43a73092d43c6c95e7dd2669f49d54b57966f) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-36320: Use the deprecated-removed directive for _field_types (GH-19370)Serhiy Storchaka2020-04-041-1/+1
|
* bpo-40131: Fix source and target order in zipapp example (GH-19290) (GH-19339)Miss Islington (bot)2020-04-031-1/+1
| | | | | | (cherry picked from commit bd6a4c3d72828d3d0e13922e165998539d24f8bc) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-40122: Updated documentation for dis.findlabels() (GH-19274)Miss Islington (bot)2020-04-031-1/+1
| | | | | (cherry picked from commit b74468e233a5137ff518e61eff65ca2d8833e38a) Co-authored-by: laike9m <laike9m@users.noreply.github.com>
* bpo-40094: Enhance os.WIFEXITED documentation (GH-19244) (GH-19277)Miss Islington (bot)2020-04-011-10/+24
| | | | | (cherry picked from commit 7c72383f95b0cdedf390726069428d7b69ed2597) Co-authored-by: Victor Stinner <vstinner@python.org>
* Document most common signals (GH-19245) (GH-19257)Victor Stinner2020-03-311-0/+106
| | | | | | Document individual signals (only the most common signals): description, default action, availability. (cherry picked from commit 400e1dbcad93061f1f7ab4735202daaa5e731507)
* fix comma location in various places (GH-19233)Miss Islington (bot)2020-03-305-6/+6
| | | | | (cherry picked from commit c49016e67c3255b37599b354a8d7995d40663991) Co-authored-by: Mathieu Dupuy <deronnax@users.noreply.github.com>
* 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>