summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* bpo-45434: Limited Python.h no longer includes stdio.h (GH-28960)Victor Stinner2021-10-141-0/+7
| | | | The <Python.h> header file no longer includes <stdio.h> if the Py_LIMITED_API macro is defined.
* bpo-45474: Fix the limited C API of marshal.h (GH-28956)Victor Stinner2021-10-141-0/+10
| | | | | | | | | | Remove two functions from the limited C API: * PyMarshal_WriteLongToFile() * PyMarshal_WriteObjectToFile() The PEP 384 excludes functions expecting "FILE*" from the stable ABI. Remove also the Py_MARSHAL_VERSION macro from the limited C API.
* bpo-45440: Require math.h isinf() to build (GH-28894)Victor Stinner2021-10-131-0/+8
| | | | | | | | | | | | | | | Building Python now requires a C99 <math.h> header file providing isinf(), isnan() and isfinite() functions. Remove the Py_FORCE_DOUBLE() macro. It was used by the Py_IS_INFINITY() macro. Changes: * Remove Py_IS_NAN(), Py_IS_INFINITY() and Py_IS_FINITE() in PC/pyconfig.h. * Remove the _Py_force_double() function. * configure no longer checks if math.h defines isinf(), isnan() and isfinite().
* bpo-45434: pyport.h no longer includes <stdlib.h> (GH-28914)Victor Stinner2021-10-131-0/+3
| | | | | Include <stdlib.h> explicitly in C files. Python.h includes <wchar.h>.
* bpo-45445: Fail if an invalid X-option is provided in the command line ↵Pablo Galindo Salgado2021-10-131-2/+2
| | | | (GH-28823)
* [docs] lexical_analysis: Expand the text on ``_`` (GH-28903)Petr Viktorin2021-10-131-4/+16
| | | | | | | | | | | | | Also: * Expand the discussion into its own entry. (Even before this, text on ``_`` was longet than the text on ``_*``.) * Briefly note the other common convention for `_`: naming unused variables. Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45434: Remove pystrhex.h header file (GH-28923)Victor Stinner2021-10-131-0/+4
| | | | | | | | | | | | | | | Move Include/pystrhex.h to Include/internal/pycore_strhex.h. The header file only contains private functions. The following C extensions are now built with Py_BUILD_CORE_MODULE macro defined to get access to the internal C API: * _blake2 * _hashopenssl * _md5 * _sha1 * _sha3 * _ssl * binascii
* bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)Terry Jan Reedy2021-10-131-0/+21
| | | To avoid error, add either space or parentheses.
* bpo-45441: Update some moved URLs in documentation (GH-28861)1809092021-10-124-6/+6
|
* Slight correct grammar (GH-28860)nobodyatandnothing2021-10-121-1/+1
|
* bpo-45433: Do not link libpython against libcrypt (GH-28881)Mike Gilbert2021-10-111-0/+2
| | | | Save/restore LIBS when calling AC_SEARCH_LIBS(..., crypt). This avoid linking libpython with libcrypt.
* bpo-41123: Remove Py_UNICODE_COPY() and Py_UNICODE_FILL() (GH-28887)Victor Stinner2021-10-111-0/+5
|
* bpo-45434: Python.h no longer includes <stdlib.h> (GH-28888)Victor Stinner2021-10-111-0/+4
|