summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45655: Add "relevant PEPs" section to ``typing`` documentation (GH-29280)Alex Waygood2021-10-281-7/+41
| | | | | | | | The list of PEPs at the top of the documentation for the ``typing`` module has become too long to be readable. This PR proposes presenting this information in a more structured and readable way by adding a new "relevant PEPs" section to the ``typing`` docs. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45583: Correct datamodel documentation of int() (GH-29182)Arthur Milchior2021-10-281-2/+2
| | | | It should be noted that this part of the documentation is redundant with function.rst's documentation of int. This one was correctly updated with Python 3.8.
* bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func ↵Nikita Sobolev2021-10-281-1/+2
| | | | | (GH-29226) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219)Erlend Egeberg Aasland2021-10-281-0/+46
|
* Fix typo in Counter documentation (GH-29223)Justinas Petuchovas2021-10-281-1/+1
| | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() (GH-29246)Sam Gross2021-10-273-9/+33
| | | | | Objects that support garbage collection ("container" objects) should call PyObject_GC_UnTrack() from their destructors before clearing any fields which may point to other "container" objects.
* bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 ↵m-aciek2021-10-271-0/+4
| | | | | | (GH-29230) Co-authored-by: Maciej Olko <maciej.olko@yougov.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-44511: Improve the bytecode for class and mapping patterns (GH-26922)Brandt Bucher2021-10-272-14/+30
| | | | | | | * Refactor mapping patterns and speed up class patterns. * Simplify MATCH_KEYS and MATCH_CLASS. * Add COPY opcode.
* bpo-40915: Fix mmap resize bugs on Windows (GH-29213)Tim Golden2021-10-261-0/+8
| | | | | | | | | | | (original patch by eryksun) Correctly hand various failure modes when resizing an mmap on Windows: * Resizing a pagefile-backed mmap now creates a new mmap and copies data * Attempting to resize when another mapping is held on the same file raises an OSError * Attempting to resize a nametagged mmap raises an OSError if another mapping is held with the same nametag
* bpo-45530: speed listobject.c's unsafe_tuple_compare() (GH-29076)Tim Peters2021-10-252-0/+9
| | | | | | | | Keep track of whether unsafe_tuple_compare() calls are resolved by the very first tuple elements, and adjust strategy accordingly. This can significantly cut the number of calls made to the full-blown PyObject_RichCompareBool(), and especially when duplicates are rare. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Expand about soft keywords in the docs for keyword.py (GH-29139)William Andrea2021-10-231-3/+3
| | | | | Add link at the top and fix the existing links to point to the "[soft keywords](https://docs.python.org/3.10/reference/lexical_analysis.html#soft-keywords)" section created in the Python 3.10 docs. Changes should be backported to 3.10 as well.
* bpo-45516: add protocol description to the TraversableResources ↵Filipe Laíns2021-10-231-0/+5
| | | | | documentation (#29173) Signed-off-by: Filipe Laíns <lains@riseup.net>
* bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes ↵Irit Katriel2021-10-221-0/+1
| | | | (GH-28569)
* bpo-44547: Make Fractions objects instances of typing.SupportsInt (GH-27851)Mark Dickinson2021-10-212-2/+10
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-41983: add availability info to socket docs (GH-27519)andrei kulakov2021-10-211-0/+4
| | | | | * add availability info to AF_PACKET section * add availability for AF_QIPCRTR as well
* bpo-44344: Document that pow can return a complex number for non-complex ↵Mark Dickinson2021-10-211-1/+4
| | | | | inputs. (GH-27853) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45522: Allow to disable freelists on build time (GH-29056)Christian Heimes2021-10-211-0/+5
| | | | | | | | Freelists for object structs can now be disabled. A new ``configure`` option ``--without-freelists`` can be used to disable all freelists except empty tuple singleton. Internal Py*_MAXFREELIST macros can now be defined as 0 without causing compiler warnings and segfaults. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105)Thomas2021-10-211-0/+7
|
* bpo-44220: Export PyStructSequence_UnnamedField in the limited API (GH-26331)Ken Jin2021-10-211-0/+1
|
* bpo-44174: [Enum] add reference to name mangling (GH-29116)Ethan Furman2021-10-211-1/+2
|
* bpo-35673: Add a public alias for namespace package __loader__ attribute ↵Barry Warsaw2021-10-201-0/+18
| | | | | | | | (#29049) Rename namespace package __loader__ class to be public. Make the old name, i.e. _NamespaceLoader, an alias for the public name, for backward compatibility.
* bpo-45320: Remove long-deprecated inspect methods (GH-28618)Hugo van Kemenade2021-10-203-53/+19
|
* bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile ↵Łukasz Langa2021-10-201-0/+23
| | | | | | (GH-29094) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Add PEPs 593 & 647 to list of PEPs at top of typing docs (GH-29097)Alex Waygood2021-10-201-1/+1
|
* bpo-25625: [doc] fix async/aync typo (GH-29091)Thomas Grainger2021-10-201-1/+1
|
* bpo-45474: Exclude all of marshal.h if Py_LIMITED_API is defined (GH-29061)Petr Viktorin2021-10-201-3/+6
| | | | | Also, reword the What's New messages: this doesn't change the limited API, it only brings the Py_LIMITED_API macro closer to the ideal of only allowing the limited API. Automerge-Triggered-By: GH:encukou
* bpo-25625: add contextlib.chdir (GH-28271)Filipe Laíns2021-10-191-2/+19
| | | | | | | | Added non parallel-safe :func:`~contextlib.chdir` context manager to change the current working directory and then restore it on exit. Simple wrapper around :func:`~os.chdir`. Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [doc]: Fix missing space in c-api/init.rst and add rstlint rule (GH-28988)Julien Palard2021-10-192-7/+14
|
* bpo-42174: fallback to sane values if the columns or lines are 0 in ↵Filipe Laíns2021-10-191-0/+4
| | | | | | | | | | | | | get_terminal_size (GH-29046) I considered only falling back when both were 0, but that still seems wrong, and the highly popular rich[1] library does it this way, so I thought we should probably inherit that behavior. [1] https://github.com/willmcgugan/rich Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-40360: Make the 2to3 deprecation more obvious. (GH-29064)Gregory P. Smith2021-10-192-3/+8
|
* bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047)Filipe Laíns2021-10-191-0/+3
| | | | | Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Add zoneinfo to the datetime documentation (GH-29038)Paul Ganssle2021-10-191-4/+6
| | | | | | We should have done this way back when 3.9 was released, but it fell off the radar. Co-authored-by: Paul Ganssle <git@m.ganssle.io>
* bpo-45434: Only exclude <stdlib.h> in Python 3.11 limited C API (GH-29027)Victor Stinner2021-10-191-12/+4
| | | | | | | The Python 3.11 limited C API no longer includes stdlib.h, stdio.h, string.h and errno.h. * Exclude Py_MEMCPY() from Python 3.11 limited C API. * xxlimited C extension is now built with Python 3.11 limited C API.
* bpo-45516: use documentation links in TraversableResources' description ↵Filipe Laíns2021-10-191-4/+5
| | | | | | | (GH-29045) I think this makes the documentation much more digestible :) Signed-off-by: Filipe Laíns <lains@riseup.net>
* bpo-35134: Split warnings.h and weakrefobject.h (GH-29042)Victor Stinner2021-10-181-0/+5
| | | | | | | | | | | | | Split header files to move the non-limited API to Include/cpython/: * Include/warnings.h => Include/cpython/warnings.h * Include/weakrefobject.h => Include/cpython/weakrefobject.h Exclude PyWeakref_GET_OBJECT() from the limited C API. It never worked since the PyWeakReference structure is opaque in the limited C API. Move _PyWarnings_Init() and _PyErr_WarnUnawaitedCoroutine() to the internal C API.
* bpo-45516: add protocol description to the Traversable documentation (#29039)Filipe Laíns2021-10-181-0/+40
| | | | | | | | | | | | | | | | | * bpo-45516: add protocol description to the Traversable documentation Signed-off-by: Filipe Laíns <lains@riseup.net> * Update Doc/library/importlib.rst Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> * Update Lib/importlib/abc.py * Update Doc/library/importlib.rst Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Improve multiserver queue recipe (GH-29012)Raymond Hettinger2021-10-171-5/+6
|
* Fix contributor person name in rst files (GH-29005)Benjamin Szőke2021-10-171-2/+2
|
* bpo-45020: Default to using frozen modules unless running from source tree. ↵Eric Snow2021-10-161-1/+2
| | | | | | | (gh-28940) The default was "off". Switching it to "on" means users get the benefit of frozen stdlib modules without having to do anything. There's a special-case for running-in-source-tree, so contributors don't get surprised when their stdlib changes don't get used. https://bugs.python.org/issue45020
* bpo-42222: Remove deprecated support for non-integer values (GH-28983)Raymond Hettinger2021-10-161-9/+4
|
* bpo-45463: Clarify that global statements allows multiple names (GH-28851)Luca Chiodini2021-10-161-4/+4
| | | | | | | The global statement allows specifying a list of identifiers (https://docs.python.org/3/reference/simple_stmts.html#the-global-statement). The "Execution model" chapter described the global statement as if it only allowed one single name. Pluralize "name" in the appropriate places.
* bpo-45442: Add deactivate step to venv tutorial. (GH-28981)srinivasan2021-10-151-0/+5
| | | | | | | @vsajip Sorry for the trouble—made a [fairly significant] git error in the previous PR. Have edited the patch as you had said in #28959. Automerge-Triggered-By: GH:vsajip
* bpo-45440: Remove pymath.c fallbacks (GH-28977)Victor Stinner2021-10-151-1/+2
| | | | | | | | Remove fallbacks for missing round(), copysign() and hypot() in Python/pymath.c. Python now requires these functions to build. These fallbacks were needed on Visual Studio 2012 and older. They are no longer needed since Visual Stuido 2013. Python is now built with Visual Studio 2017 or newer since Python 3.6.
* bpo-43760: Add PyThreadState_EnterTracing() (GH-28542)Victor Stinner2021-10-152-0/+29
| | | | | | | | | | Add PyThreadState_EnterTracing() and PyThreadState_LeaveTracing() functions to the limited C API to suspend and resume tracing and profiling. Add an unit test on the PyThreadState C API to _testcapi. Add also internal _PyThreadState_DisableTracing() and _PyThreadState_ResetTracing().
* bpo-44113: Move the What's New entry to Deprecate section (GH-28974)Victor Stinner2021-10-151-7/+7
|
* bpo-45434: Remove Include/eval.h header file (GH-28973)Victor Stinner2021-10-153-9/+6
| | | | Move Include/eval.h content into Include/ceval.h and Include/cpython/ceval.h, and remove Include/eval.h.
* bpo-35134: Move classobject.h to Include/cpython/ (GH-28968)Victor Stinner2021-10-151-1/+2
| | | | | | | | | Move classobject.h, context.h, genobject.h and longintrepr.h header files from Include/ to Include/cpython/. Remove redundant "#ifndef Py_LIMITED_API" in context.h. Remove explicit #include "longintrepr.h" in C files. It's not needed, Python.h already includes it.
* bpo-35134: Move Include/cellobject.h to Include/cpython/ (GH-28964)Victor Stinner2021-10-151-4/+5
|
* po-35134: Move Include/funcobject.h to Include/cpython/ (GH-28958)Victor Stinner2021-10-141-0/+6
| | | Remove redundant "#ifndef Py_LIMITED_API" in funcobject.h.
* bpo-41710: Fix What's New Entry credit (GH-28962)Victor Stinner2021-10-141-1/+1
| | | Fix bad copy/paste.