summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40854: Allow overriding sys.platlibdir via PYTHONPLATLIBDIR env-var ↵Victor Stinner2020-06-082-0/+17
| | | | | | | (GH-20605) (GH-20725) (cherry picked from commit 8f023a2f664f902a3d0b7a6f64d63afc0d1c15ae) Co-authored-by: Sandro Mani <manisandro@gmail.com>
* bpo-40910: Export Py_GetArgcArgv() function (GH-20721) (GH-20723)Victor Stinner2020-06-081-0/+9
| | | | | | | | | | | | | | Export explicitly the Py_GetArgcArgv() function to the C API and document the function. Previously, it was exported implicitly which no longer works since Python is built with -fvisibility=hidden. * Add PyConfig._orig_argv member. * Py_InitializeFromConfig() no longer calls _PyConfig_Write() twice. * PyConfig_Read() no longer initializes Py_GetArgcArgv(): it is now _PyConfig_Write() responsibility. * _PyConfig_Write() result type becomes PyStatus instead of void. * Write an unit test on Py_GetArgcArgv(). (cherry picked from commit e81f6e687d0f04a45f2389d0b43fafd6d8491624)
* bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438)Miss Islington (bot)2020-06-081-2/+11
| | | | | | | Looks like the merging of bpo-33187 and bpo-20928 was racy, resulting in this change going undocumented. (cherry picked from commit 301f0d4ff9b6bd60599eea0612904f65a92e6dd9) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
* bpo-22021: Update root_dir and base_dir documentation in shutil (GH-10367)Miss Islington (bot)2020-06-081-3/+47
| | | | | | | | Also added an example in shutil in order to make more clear how they are to be used. Initially reported by Weinan Li on bpo. (cherry picked from commit 7633371dace67aaa21eb4b86f889441571ec4167) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* bpo-39791: Refresh importlib.metadata from importlib_metadata 1.6.1. ↵Miss Islington (bot)2020-06-051-3/+11
| | | | | | | | | | | | | | (GH-20659) (GH-20661) * Refresh importlib.metadata from importlib_metadata 1.6.1. * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 161541ab45278df6603dd870113b10f13e4d9e16) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Fix spacing in docs for tarfile (GH-20629)Miss Islington (bot)2020-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | Before ``` content.txt is 42 bytes in size and isa regular file. folder is 420 bytes in size and isa directory. magic is 4200 bytes in size and issomething else. ``` After: ``` content.txt is 42 bytes in size and is a regular file. folder is 420 bytes in size and is a directory. magic is 4200 bytes in size and is something else. ``` Automerge-Triggered-By: @orsenthil (cherry picked from commit 7a280197f4162e5fcdde6f34701a9fa6e669190d) Co-authored-by: Harsha Laxman <HarshaLaxman@users.noreply.github.com>
* bpo-40241: What's New in Python 3.9: opaque PyGC_Head (GH-20586)Miss Islington (bot)2020-06-021-0/+4
| | | | | (cherry picked from commit 337d3103a2344e1fec75985e85fabcbdedac7d26) Co-authored-by: Victor Stinner <vstinner@python.org>
* Ensure correct version of Sphinx is used for Windows builds (GH-20582)Miss Islington (bot)2020-06-011-1/+1
| | | | | (cherry picked from commit fe5dd78182dbf4937bcc2b113ca7526bfad0192b) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.9] bpo-40630: Add tracemalloc.reset_peak (GH-20102) (GH-20545)Huon Wilson2020-06-012-0/+65
| | | | | | | | | | | * bpo-40630: Add tracemalloc.reset_peak (GH-20102, cherrypick 8b62644) The reset_peak function sets the peak memory size to the current size, representing a resetting of that metric. This allows for recording the peak of specific sections of code, ignoring other code that may have had a higher peak (since the most recent `tracemalloc.start()` or tracemalloc.clear_traces()` call). * Adjust docs to point to 3.9
* bpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)Miss Islington (bot)2020-06-011-3/+1
| | | | | (cherry picked from commit c8966667bbdb284c3780ef6cec8a3870935a6bb7) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-17005: Move topological sort functionality to its own module (GH-20558)Miss Islington (bot)2020-06-014-202/+219
| | | | | | | | | The topological sort functionality that was introduced initially in the functools module has been moved to a new graphlib module to better accommodate the new tools and keep the original scope of the functools module. (cherry picked from commit 2f172d8f1525defe9bba4d49e967fdfc69151731) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Fix typo in "What's new in Python 3.9" (GH-20559)Miss Islington (bot)2020-05-311-1/+1
| | | | | | Automerge-Triggered-By: @pablogsal (cherry picked from commit 491a3d3a75b656c8317d8ce343aea767978b946c) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* bpo-40759: Deprecate the symbol module (GH-20364)Miss Islington (bot)2020-05-312-3/+9
| | | | | | Automerge-Triggered-By: @pablogsal (cherry picked from commit cf88871d6a9c12e7b7e5f4d65abc2ec6e2fe952e) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
* Fix asyncio.to_thread() documented return type (GH-20547)Miss Islington (bot)2020-05-311-2/+1
| | | | | | | | When I wrote the documentation for `asyncio.to_thread()`, I mistakenly assumed that `return await loop.run_in_executor(...)` within an async def function would return a Future. In reality, it returns a coroutine. This likely won't affect typical usage of `asyncio.to_thread()`, but it's important for the documentation to be correct here. In general, we also tend to avoid returning futures from high-level APIs in asyncio. (cherry picked from commit 2b201369b435a4266bda5b895e3b615dbe28ea6e) Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* bpo-40829: Add a what's new entry about deprecation of shuffle's random ↵Miss Islington (bot)2020-05-301-0/+3
| | | | parameter (GH-20541) (GH-20544)
* bpo-40798: Generate a different message for already removed elements (GH-20483)Miss Islington (bot)2020-05-302-2/+12
| | | | | (cherry picked from commit 735d902b363b759df9ff00e58bbf4f7e2bde78cd) Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
* closes bpo-29017: Update the bindings for Qt information with PySide2 (GH-20149)Miss Islington (bot)2020-05-301-5/+6
| | | | | | Reference to PySide has been removed has it is for Qt 4, which has reached end of life. (cherry picked from commit 4649202ea75d48e1496e99911709824ca2d3170e) Co-authored-by: Samuel Gaist <samuel.gaist@idiap.ch>
* Indicate that abs() method accept argument that implement __abs__(), just ↵Miss Islington (bot)2020-05-291-3/+2
| | | | | | | like call() method in the docs (GH-20509) (cherry picked from commit 28316422124206f63ddd4b91f2e19c54b6e9cd9d) Co-authored-by: Windson yang <wiwindson@outlook.com>
* Note the output ordering of combinatoric functions (GH-19732) (GH-20501)Miss Islington (bot)2020-05-281-9/+9
|
* bpo-40806: itertools.product immediately consumes its inputs (GH-20492) ↵Miss Islington (bot)2020-05-281-0/+3
| | | | (GH-20498)
* bpo-1294959: Try to clarify the meaning of platlibdir (GH-20332)Miss Islington (bot)2020-05-282-7/+7
| | | | | | | | | | | Try to make the meaning of platlibdir clear. The previous wording could be misinterpreted to suggest that it will be used to find all shared libraries on the system, and not just Python extensions. Furthermore, it was unclear whether it affects third-party (site-packages) extensions or not. The new wording tries to make its dual purpose clear, and provide the additional example of extensions in site-packages. (cherry picked from commit 242d95659b6b4ff4fb54b58a30454dafa311d4e9) Co-authored-by: Michał Górny <mgorny@gentoo.org>
* bpo-37878: PyThreadState_DeleteCurrent() was not removed (GH-20489)Miss Islington (bot)2020-05-281-3/+2
| | | | | | | | Update What's New in Python 3.9. PyThreadState_DeleteCurrent was not removed, but excluded from the limited C API. (cherry picked from commit fda7f6d61b13c68f59806db674e892fda4013348) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for ↵Miss Islington (bot)2020-05-282-1/+64
| | | | | | | | | | | | PyType_FromSpec types (reverts GH-19414) (GH-20264) Heap types now always visit the type in tp_traverse. See added docs for details. This reverts commit 0169d3003be3d072751dd14a5c84748ab63a249f. Automerge-Triggered-By: @encukou (cherry picked from commit 1cf15af9a6f28750f37b08c028ada31d38e818dd) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.9] bpo-40791: Use CRYPTO_memcmp() for compare_digest (GH-20456) (GH-20461)Christian Heimes2020-05-281-0/+5
| | | | | | | | | | | hashlib.compare_digest uses OpenSSL's CRYPTO_memcmp() function when OpenSSL is available. Note: The _operator module is a builtin module. I don't want to add libcrypto dependency to libpython. Therefore I duplicated the wrapper function and added a copy to _hashopenssl.c.. (cherry picked from commit db5aed931f8a617f7b63e773f62db468fe9c5ca1) Co-authored-by: Christian Heimes <christian@python.org>
* Improve IO tutorial's "Old string formatting" section (GH-16251)Miss Islington (bot)2020-05-281-5/+5
| | | | | | | | * Use a more universal explanation of string interpolation rather than specifically referencing sprintf(), which depends on the reader having a C background. Co-authored-by: Kyle Stanley <aeros167@gmail.com> (cherry picked from commit eaca2aa117d663acf8160a0b4543ee2c7006fcc7) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
* bpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 ↵Miss Islington (bot)2020-05-281-1/+1
| | | | | | | | | (GH-20473) (GH-20474) (cherry picked from commit 56853d8ec6ed89bf5a9b81c3781a4df46ac391d3) Co-authored-by: Elazar Gershuni <elazarg@gmail.com> Co-authored-by: Elazar Gershuni <elazarg@gmail.com>
* bpo-38580: Document that select() accepts iterables, not just sequences ↵Miss Islington (bot)2020-05-261-3/+3
| | | | | | | (GH-16832) (cherry picked from commit 372ee27d4958302dac7ad6a8711f6fd04771b2e6) Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
* bpo-39301: State that floor division is used for right shift operations ↵Miss Islington (bot)2020-05-261-4/+2
| | | | | | | | | | | | (GH-20347) (GH-20414) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check" (cherry picked from commit af7553ac95a96713be847dd45bc5a8aeb0a75955) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-40745: Fix typos in NewType docs (GH-20379)Miss Islington (bot)2020-05-261-2/+2
| | | | | (cherry picked from commit 2b0e654f91f28379c6c7ef5fd80e8754afb70935) Co-authored-by: ziheng <zihenglv@gmail.com>
* [3.9] closes bpo-40774: Fix docs indentation for ↵Benjamin Peterson2020-05-261-8/+8
| | | | | | | asyncio.create_subprocess_shell() (GH-20403) (#20407) (cherry picked from commit 4a0ac42) Co-authored-by: sth <sth.dev@tejp.de>
* bpo-23082: Better error message for PurePath.relative_to() from pathlib ↵Miss Islington (bot)2020-05-251-1/+3
| | | | | | | | (GH-19611) Co-authored-by: Sadhana Srinivasan <rotuna@Sadhanas-MBP.fritz.box> (cherry picked from commit 448325369ff73011d34d6c3a493014fe3ead8843) Co-authored-by: Rotuna <sadhanasrinivasan@protonmail.com>
* bpo-39245: Fix docs links to the stable ABI (GH-20388)Miss Islington (bot)2020-05-251-9/+9
| | | | | | Automerge-Triggered-By: @vstinner (cherry picked from commit e50883ccc4bfa198c3d5e3367306324fc49730cb) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)Miss Islington (bot)2020-05-251-1/+1
| | | | | (cherry picked from commit ef16958d17e83723334a51428f410f726d6492a7) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* bpo-17050: Remove documentation on argparse.REMAINDER (GH-18661) (GH-20363)Miss Islington (bot)2020-05-241-13/+0
|
* bpo-40405: Fix asyncio.as_completed docs (GH-19753)Miss Islington (bot)2020-05-231-5/+5
| | | | | | | | | | | * Fix as_completed docs to correctly state the function return value. * Also, improves the general wording of the as_completed documentation. Co-Authored-By: Rémi Lapeyre <remi.lapeyre@henki.fr> Co-Authored-By: Kyle Stanley <aeros167@gmail.com> Co-Authored-By: Yury Selivanov <yury@edgedb.com> (cherry picked from commit 13206b52d16c2489f4c7dd2dce2a7f48a554b5ed) Co-authored-by: Bar Harel <bzvi7919@gmail.com>
* bpo-40439: Update broken link in lexical analysis docs (GH-20184)Miss Islington (bot)2020-05-231-1/+1
| | | | | | Automerge-Triggered-By: @csabella (cherry picked from commit af23f0d3cf19343512e6ca1fe1d46a5dbe425719) Co-authored-by: Matteo Bertucci <matteobertucci2004@gmail.com>
* Reword aware/naive introduction sentence (GH-20175)Miss Islington (bot)2020-05-221-1/+2
| | | | | | | | This is more informative and avoids the question of whether the period should go inside or outside the quotation marks. See also GH-20007. (cherry picked from commit 2e76820a50b8ce2a9a5f6cdef6cef1859a89c460) Co-authored-by: Mathieu Dupuy <mathieu.dupuy@doctolib.com>
* bpo-40730: Remove redundant 'to' (GH-20316) (GH-20318)Miss Islington (bot)2020-05-221-1/+1
| | | | | | | | | | @ericvsmith I guess it is correct to merge it into master and not 3.9 directly? Automerge-Triggered-By: @ericvsmith (cherry picked from commit 30d5a7364db9e65ccabbdce2c20b84fe2fb233fb) Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de> Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
* bpo-40725: Restore missing column of digits (GH-20313) (GH-20315)Miss Islington (bot)2020-05-221-30/+30
|
* [doc] Remove references to obsolete BuildApplet on macOS. (GH-20023) (GH-20304)Miss Islington (bot)2020-05-211-8/+2
| | | | | | (cherry picked from commit 7864f11cdf12807555d62c7a132c191eb41ecc02) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-32309: Add support for contextvars in asyncio.to_thread() (GH-20278)Miss Islington (bot)2020-05-211-1/+5
| | | | | | | | Allows contextvars from the main thread to be accessed in the separate thread used in `asyncio.to_thread()`. See the [discussion](https://github.com/python/cpython/pull/20143GH-discussion_r427808225) in GH-20143 for context. Automerge-Triggered-By: @aeros (cherry picked from commit 0f56263e62ba91d0baae40fb98947a3a98034a73) Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* Update whatsnew benchmark results for 3.9 (GH-20276) (GH-20277)Miss Islington (bot)2020-05-211-0/+55
|
* bpo-40698: Improve distutils upload hash digests (GH-20260)Miss Islington (bot)2020-05-201-0/+7
| | | | | | | | | | - Fix upload test on systems that blocks MD5 - Add SHA2-256 and Blake2b-256 digests based on new Warehous and twine specs. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit e572c7f6dbe5397153803eab256e4a4ca3384f80) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-40291: Mention socket.CAN_J1939 in What's New (GH-20248)Miss Islington (bot)2020-05-201-0/+3
| | | | | | | | | This mentions the new CAN_J1939 implementation in the What's New documentation for Python 3.9 Automerge-Triggered-By: @gvanrossum (cherry picked from commit 550f30c8f33a2ba844db2ce3da8a897b3e882c9a) Co-authored-by: karl ding <karlding@users.noreply.github.com>
* Fix code-block in zoneinfo (GH-20201)Miss Islington (bot)2020-05-191-2/+2
| | | | | | | | | | | | | | | | | ``` Warning, treated as error: /tmp/code/Doc/library/zoneinfo.rst:303:Error in "code-block" directive: 1 argument(s) required, 0 supplied. .. code-block:: >>> a = ZoneInfo("Europe/Berlin") >>> b = pickle.loads(europe_berlin_pkl) >>> a is b True ``` (cherry picked from commit 9095f76613c8dd67beb21992def837bb8a37ed25) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* [3.9] Doc: Python 3.10 in sidebar and version switcher. (GH-20209) (GH-20221)Miss Islington (bot)2020-05-192-2/+4
| | | | | | (cherry picked from commit 19e3e0026417caa92ffe21a67157363b45da9aa2) Co-authored-by: Julien Palard <julien@palard.fr>
* bpo-32309: Implement asyncio.to_thread() (GH-20143)Miss Islington (bot)2020-05-193-0/+65
| | | | | | | | Implements `asyncio.to_thread`, a coroutine for asynchronously running IO-bound functions in a separate thread without blocking the event loop. See the discussion starting from [here](https://github.com/python/cpython/pull/18410GH-issuecomment-628930973) in GH-18410 for context. Automerge-Triggered-By: @aeros (cherry picked from commit cc2bbc2227c3f5ed9d8f6b3bd052e6f9e68279d2) Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* Python 3.9.0b1v3.9.0b1Łukasz Langa2020-05-181-1/+1
|
* bpo-40257: Revert changes to inspect.getdoc() (GH-20073)Serhiy Storchaka2020-05-182-9/+1
|
* Revert "bpo-26317: Support OBJC and OBJCXX configure command line variables ↵Ned Deily2020-05-181-8/+0
| | | | | | | | | (GH-20176)" (GH-20182) This reverts commit 0da546665075aefbb476e192ed64122d340164f4. The commit is causing make failures on a FreeBSD buildbot. Due to the imminent 3.9.0b1 cutoff, revert this commit for now pending further investigation.