summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878)Inada Naoki2020-06-171-0/+11
| | | | Co-authored-by: Kyle Stanley <aeros167@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-36020: Require vsnprintf() to build Python (GH-20899)Victor Stinner2020-06-152-7/+7
| | | | | | | | The C99 functions snprintf() and vsnprintf() are now required to build Python. PyOS_snprintf() and PyOS_vsnprintf() no longer call Py_FatalError(). Previously, they called Py_FatalError() on a buffer overflow on platforms which don't provide vsnprintf().
* Fixes dead links to Django's logging config docs (GH-20823)kevin seelbach2020-06-141-2/+2
| | | | | Fixes two outdated URLs to point at the current "stable" version of Django's logging documentation. Automerge-Triggered-By: @vsajip
* bpo-37674: Tweak imp module deprecation note in the docs (GH-20480)Zackery Spytz2020-06-131-1/+1
|
* Minor change on threading.Thread.native_id documentation. (GH-18129)Antoine2020-06-121-5/+4
| | | | | | | | | Remove duplication in `threading.Thread.native_id` documentation, so resulting documentation is more consistent with the `threading.Thread.ident`. Issue initially raised [here](https://github.com/python/python-docs-fr/pull/1122#discussion_r369236634) (in French). No issue associated to this PR. Automerge-Triggered-By: @csabella
* bpo-40890: Add `mapping` property to dict views (GH-20749)Dennis Sweeney2020-06-122-0/+17
|
* Update lexical_analysis.rst (GH-17508)Géry Ogam2020-06-121-1/+1
| | | | | Use Sphinx role markup for `str.format`. Automerge-Triggered-By: @csabella
* bpo-33944: site: Add site-packages tracing in verbose mode (GH-12110)native-api2020-06-121-0/+5
|
* bpo-40939: Remove the old parser (GH-20768)Pablo Galindo2020-06-112-21/+0
| | | This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation.
* bpo-40275: Move TransientResource to test_urllib2net (GH-20812)Victor Stinner2020-06-111-9/+0
| | | | | | Move TransientResource, time_out, socket_peer_reset and ioerror_peer_reset from test.support to test_urllib2net. Remove "import errno" from test.support.
* bpo-40275: Add warnings_helper submodule in test.support (GH-20797)Hai Shi2020-06-111-93/+102
|
* bpo-40275: Add import_helper submodule in test.support (GH-20794)Hai Shi2020-06-101-103/+116
|
* bpo-40895: Update weakref documentation to remove old warnings (GH-20687)Daniel Fortunov2020-06-101-16/+0
| | | | | | | | | | The doccumentation at https://docs.python.org/3.10/library/weakref.html cautions that the `WeakKeyDictionary` and `WeakValueDictionary` are susceptible to the problem of dictionary mutation during iteration. These notes present the user with a problem that has no easy solution. I dug into the implementation and found that fortunately, Antoine Pitrou already addressed this challenge (10 years ago!) by introducing an `_IterationGuard` context manager to the implementation, which delays mutation while an iteration is in progress. I asked for confirmation and @pitrou agreed that these notes could be removed: https://github.com/python/cpython/commit/c1baa601e2b558deb690edfdf334fceee3b03327#commitcomment-39514438
* bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." ↵Serhiy Storchaka2020-06-102-5/+2
| | | | | | | (GH-20117) * Revert "bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108)" This reverts commit b33e52511a59c6da7132c226b7f7489b092a33eb.
* bpo-40275: Add os_helper submodule in test.support (GH-20765)Hai Shi2020-06-101-172/+184
|
* bpo-34003: Re-add versionchanged entry in csv docs (GH-20657)Éric Araujo2020-06-101-0/+3
| | | Follow-up to GH-8014
* Remove reference to 3.7 and 3.8 backports. (GH-20754)Stefan Krah2020-06-091-1/+0
|
* bpo-24914: mention Python supports multiple paradigms in the FAQ (#20658)Brett Cannon2020-06-081-6/+7
|
* bpo-40854: PYTHONPLATLIBDIR env var added to 3.9 (GH-20735)Victor Stinner2020-06-082-2/+2
|
* bpo-40910: Export Py_GetArgcArgv() function (GH-20721)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().
* bpo-40854: Allow overriding sys.platlibdir via PYTHONPLATLIBDIR env-var ↵Sandro Mani2020-06-082-0/+17
| | | | (GH-20605)
* bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438)Shantanu2020-06-081-2/+11
| | | | Looks like the merging of bpo-33187 and bpo-20928 was racy, resulting in this change going undocumented.
* bpo-22021: Update root_dir and base_dir documentation in shutil (GH-10367)Lysandros Nikolaou2020-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.
* bpo-39791: Refresh importlib.metadata from importlib_metadata 1.6.1. (GH-20659)Jason R. Coombs2020-06-051-3/+11
| | | | | | | * 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>
* bpo-39573: Porting to Python 3.10: Py_SET_SIZE() macro (GH-20610)Victor Stinner2020-06-041-3/+21
| | | | | In What's New in Python 3.10, propose Py_SET_SIZE(), Py_SET_REFCNT() and Py_SET_TYPE() macros for backward compatibility with Python 3.9 and older.
* Fix spacing in docs for tarfile (GH-20629)Harsha Laxman2020-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
* bpo-40839: PyDict_GetItem() requires the GIL (GH-20580)Victor Stinner2020-06-022-0/+8
| | | | Calling PyDict_GetItem() without GIL held had been allowed for historical reason. It is no longer allowed.
* bpo-40241: What's New in Python 3.9: opaque PyGC_Head (GH-20586)Victor Stinner2020-06-021-0/+4
|
* Ensure correct version of Sphinx is used for Windows builds (GH-20582)Steve Dower2020-06-011-1/+1
|
* bpo-40630: adjust tracemalloc.reset_peak docs for backport to 3.9 (GH-20546)Huon Wilson2020-06-013-8/+7
|
* bpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)Zackery Spytz2020-06-011-3/+1
|
* bpo-17005: Move topological sort functionality to its own module (GH-20558)Pablo Galindo2020-05-314-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.
* Fix typo in "What's new in Python 3.9" (GH-20559)Lysandros Nikolaou2020-05-311-1/+1
| | | Automerge-Triggered-By: @pablogsal
* bpo-40759: Deprecate the symbol module (GH-20364)Batuhan Taskaya2020-05-312-3/+9
| | | Automerge-Triggered-By: @pablogsal
* bpo-40755: Add rich comparisons to Counter (GH-20548)Raymond Hettinger2020-05-311-41/+13
|
* Fix asyncio.to_thread() documented return type (GH-20547)Kyle Stanley2020-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.
* bpo-40829: Add a what's new entry about deprecation of shuffle's random ↵Batuhan Taskaya2020-05-301-0/+3
| | | | parameter (GH-20541)
* bpo-40798: Generate a different message for already removed elements (GH-20483)Florian Dahlitz2020-05-302-2/+12
|
* closes bpo-29017: Update the bindings for Qt information with PySide2 (GH-20149)Samuel Gaist2020-05-301-5/+6
| | | Reference to PySide has been removed has it is for Qt 4, which has reached end of life.
* bpo-29882: Add an efficient popcount method for integers (#771)Niklas Fiekas2020-05-292-0/+24
| | | | | | | | | | | | | | | | | | | | | | | * bpo-29882: Add an efficient popcount method for integers * Update 'sign bit' and versionadded in docs * Add entry to whatsnew document * Doc: use positive example, mention population count * Minor cleanups of the core code * Move popcount_digit closer to where it's used * Use z instead of self after conversion * Add 'absolute value' and 'population count' to docstring * Fix clinic error about missing summary line * Ensure popcount_digit is portable with 64-bit ints Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* Indicate that abs() method accept argument that implement __abs__(), just ↵Windson yang2020-05-291-3/+2
| | | | like call() method in the docs (GH-20509)
* Note the output ordering of combinatoric functions (GH-19732)Ruaridh Williamson2020-05-281-9/+9
|
* bpo-40806: Clarify that itertools.product immediately consumes its inpt ↵Ramil Nugmanov2020-05-281-0/+3
| | | | (GH-20492)
* bpo-1294959: Try to clarify the meaning of platlibdir (GH-20332)Michał Górny2020-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.
* bpo-37878: PyThreadState_DeleteCurrent() was not removed (GH-20489)Victor Stinner2020-05-281-3/+2
| | | | | Update What's New in Python 3.9. PyThreadState_DeleteCurrent was not removed, but excluded from the limited C API.
* bpo-40755: Add missing multiset operations to Counter() (GH-20339)Raymond Hettinger2020-05-281-0/+41
|
* bpo-40275: Remove test.support.TESTFN_ENCODING (GH-20482)Hai Shi2020-05-281-5/+0
| | | Replace test.support.TESTFN_ENCODING with sys.getfilesystemencoding().
* bpo-40792: Make the result of PyNumber_Index() always having exact type int. ↵Serhiy Storchaka2020-05-283-0/+12
| | | | | | | | | | | | (GH-20443) Previously, the result could have been an instance of a subclass of int. Also revert bpo-26202 and make attributes start, stop and step of the range object having exact type int. Add private function _PyNumber_Index() which preserves the old behavior of PyNumber_Index() for performance to use it in the conversion functions like PyLong_AsLong().
* Improve IO tutorial's "Old string formatting" section (GH-16251)Adorilson Bezerra2020-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>
* bpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 ↵Elazar Gershuni2020-05-281-1/+1
| | | | (GH-20473)