summaryrefslogtreecommitdiff
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* 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-071-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-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.
* 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-291-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-271-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)
* bpo-40275: Adding threading_helper submodule in test.support (GH-20263)Hai Shi2020-05-281-67/+78
|
* bpo-37129: Add os.RWF_APPEND flag for os.pwritev() (GH-20336)YoSTEALTH2020-05-271-4/+19
|
* bpo-40791: Use CRYPTO_memcmp() for compare_digest (#20456)Christian Heimes2020-05-271-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.
* bpo-39573: Convert Py_REFCNT and Py_SIZE to functions (GH-20429)Victor Stinner2020-05-272-9/+19
| | | | | | | | | | | Convert Py_REFCNT() and Py_SIZE() macros to static inline functions. They cannot be used as l-value anymore: use Py_SET_REFCNT() and Py_SET_SIZE() to set an object reference count and size. Replace &Py_SIZE(self) with &((PyVarObject*)self)->ob_size in arraymodule.c. This change is backward incompatible on purpose, to prepare the C API for an opaque PyObject structure.
* bpo-37999: Fix outdated __int__ and nb_int references in comments (GH-20449)Mark Dickinson2020-05-271-30/+25
| | | | | | | | | * Fix outdated __int__ and nb_int references in comments * Also update C-API documentation * Add back missing 'method' word * Remove .. deprecated notices
* bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for ↵Pablo Galindo2020-05-272-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
* bpo-40611: Adds MAP_POPULATE to the mmap module (GH-20061)Ethan Steinberg2020-05-261-1/+21
| | | | MAP_POPULATE constant has now been added to the list of exported mmap module flags.
* bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636)Serhiy Storchaka2020-05-261-0/+6
| | | | Only __index__ should be used to make integer conversions lossless.
* bpo-39301: State that floor division is used for right shift operations ↵Zackery Spytz2020-05-261-4/+2
| | | | | | | (GH-20347) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check"
* Remove duplicated words words (GH-20413)Serhiy Storchaka2020-05-263-3/+3
|
* bpo-40745: Fix typos in NewType docs (GH-20379)ziheng2020-05-251-2/+2
|
* closes bpo-40774: Fix docs indentation for asyncio.create_subprocess_shell() ↵sth2020-05-251-8/+8
| | | | (GH-20403)
* bpo-23082: Better error message for PurePath.relative_to() from pathlib ↵Rotuna2020-05-251-1/+3
| | | | | (GH-19611) Co-authored-by: Sadhana Srinivasan <rotuna@Sadhanas-MBP.fritz.box>
* bpo-39573: Convert Py_TYPE() to a static inline function (GH-20290)Dong-hee Na2020-05-262-11/+30
|
* bpo-39245: Fix docs links to the stable ABI (GH-20388)Miro Hrončok2020-05-251-9/+9
| | | Automerge-Triggered-By: @vstinner
* bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)Miro Hrončok2020-05-251-1/+1
|