summaryrefslogtreecommitdiff
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-45618: Update Sphinx version used to build the documentation to 4.2.0 ↵m-aciek2021-10-311-5/+1
| | | | | | | | | | | (GH-29256) Updating version of Sphinx to most recent one, 4.2.0. Documentation builds without warnings. Sphinx 4.2.0 release notes: https://www.sphinx-doc.org/en/master/changes.html#release-4-2-0-released-sep-12-2021. cc @JulienPalard Automerge-Triggered-By: GH:JulienPalard
* Move field width to the right field (GH-29344)Olaf van der Spek2021-10-311-2/+2
| | | Automerge-Triggered-By: GH:vsajip
* bpo-45516: fix Traversable.name documentation (GH-29194)Filipe Laíns2021-10-311-2/+2
| | | | | | | Here we go again... Sorrry! Signed-off-by: Filipe Laíns <lains@riseup.net> Automerge-Triggered-By: GH:jaraco
* Fix docs source link for importlib.metadata (GH-29025)Philipp A2021-10-301-1/+1
| | | | | | | The link broke for Python 3.10 since importlib.metadata was made from a module into a package I think this is trivial enough to not need a bpo issue. Automerge-Triggered-By: GH:jaraco
* bpo-45600: Enhanced / clarified the docs for os.environ and os.environb ↵andrei kulakov2021-10-291-7/+8
| | | | | (GH-29204) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45335: Add note to `sqlite3` docs about "timestamp" converter (GH-29200)Ian Fisher2021-10-291-0/+6
|
* bpo-45548: Some test modules must be built as shared libs (GH-29268)Christian Heimes2021-10-291-0/+7
| | | | | | | | | | | | | Some test cases don't work when test modules are static extensions. Add dependency on Modules/config.c to trigger a rebuild whenever a module build type is changed. ``makesetup`` puts shared extensions into ``Modules/`` directory. Create symlinks from pybuilddir so the extensions can be imported. Note: It is not possible to use the content of pybuilddir.txt as a build target. Makefile evaluates target variables in the first pass. The pybuilddir.txt file does not exist at that point.
* bpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)Alex Waygood2021-10-291-1/+2
|
* bpo-45395: Make custom frozen modules additions instead of replacements. ↵Eric Snow2021-10-281-4/+2
| | | | | | | | | (gh-28778) Currently custom modules (the array set on PyImport_FrozenModules) replace all the frozen stdlib modules. That can be problematic and is unlikely to be what the user wants. This change treats the custom frozen modules as additions instead. They take precedence over all other frozen modules except for those needed to bootstrap the import system. If the "code" field of an entry in the custom array is NULL then that frozen module is treated as disabled, which allows a custom entry to disable a frozen stdlib module. This change allows us to get rid of is_essential_frozen_module() and simplifies the logic for which frozen modules should be ignored. https://bugs.python.org/issue45395
* 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-242-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-231-0/+1
| | | | (GH-28569)
* bpo-44547: Make Fractions objects instances of typing.SupportsInt (GH-27851)Mark Dickinson2021-10-222-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-201-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-201-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-181-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-191-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.