summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
...
* GH-125837: Split `LOAD_CONST` into three. (GH-125972)Mark Shannon2024-10-291-7/+16
| | | | | | | | * Add LOAD_CONST_IMMORTAL opcode * Add LOAD_SMALL_INT opcode * Remove RETURN_CONST opcode
* gh-89762: Document strftime %G, %V, and %u format specifiers (#124572)RUANG (James Roy)2024-10-281-0/+13
|
* gh-126012: Add `__class_getitem__` to `memoryview` (#126013)Brian Schubert2024-10-271-0/+3
| | | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-125633: Add function `ispackage` to stdlib `inspect` (#125634)Zhikang Yan2024-10-271-0/+7
| | | | | --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-120313: amend documentation regarding `ctypes._CFuncPtr` (GH-120989)Bénédikt Tran2024-10-251-19/+29
| | | improve docs
* gh-84545: Clarify the 'extend' action documentation in argparse (GH-125870)Serhiy Storchaka2024-10-251-11/+15
|
* gh-125665: Update turtledemo docstrings with correct file names (#125691)Wulian2024-10-231-3/+0
| | | | Co-authored-by: Wulian <xiguawulian@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-125286: Share the Main Refchain With Legacy Interpreters (gh-125709)Eric Snow2024-10-231-0/+29
| | | | | They used to be shared, before 3.12. Returning to sharing them resolves a failure on Py_TRACE_REFS builds. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-58032: Deprecate the argparse.FileType type converter (GH-124664)Serhiy Storchaka2024-10-231-9/+16
|
* gh-80958: unittest: discovery support for namespace packages as start ↵Jacob Walls2024-10-231-21/+14
| | | | directory (#123820)
* gh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning a string ↵Serhiy Storchaka2024-10-211-3/+4
| | | | | | | | again (GH-125774) This is a follow up of GH-124974. Only Glibc needed a fix. Now the returned value is a string consisting of semicolon-separated symbols on all Posix platforms.
* gh-125767: Fix pickling and copying of super objects (GH-125781)Serhiy Storchaka2024-10-211-0/+4
| | | | | | | | | Previously, copying a super object returned a copy of the instance invoking super(). Pickling a super object could pickle the instance invoking super() or fail, depending on its type and protocol. Now deep copying returns a new super object and pickling pickles the super object. Shallow copying returns the same super object.
* Doc: Fix typos (#125728)ember912024-10-212-2/+2
|
* gh-99030: Added documentation links for types and exceptions (GH-123857)RUANG (Roy James)2024-10-211-4/+8
| | | | | | | | | | | | | * Added documentation links for types and exceptions * Shortened description sentences * Change content * Change documentation * Move seealso * Add a spaces
* Doc: Fix pluralization in os.process_cpu_count() documentation (#125678)Tom Most2024-10-201-1/+1
|
* gh-125541: Make Ctrl-C interrupt `threading.Lock.acquire()` on Windows (#125546)Sam Gross2024-10-172-6/+6
|
* gh-118986: expose `socket.IPV6_RECVERR` (#118987)chrysn2024-10-171-2/+2
|
* gh-125542: Deprecate prefix_chars in ArgumentParser.add_argument_group() ↵Savannah Ostrowski2024-10-171-0/+4
| | | | (GH-125563)
* GH-99749: Add optional feature to suggest correct names (ArgumentParser) ↵Savannah Ostrowski2024-10-171-1/+27
| | | | (GH-124456)
* gh-124694: Add concurrent.futures.InterpreterPoolExecutor (gh-124548)Eric Snow2024-10-164-8/+144
| | | | | | | | | | | | This is an implementation of InterpreterPoolExecutor that builds on ThreadPoolExecutor. (Note that this is not tied to PEP 734, which is strictly about adding a new stdlib module.) Possible future improvements: * support passing a script for the initializer or to submit() * support passing (most) arbitrary functions without pickling * support passing closures * optionally exec functions against __main__ instead of the their original module
* Python 3.14.0a1v3.14.0a1Hugo van Kemenade2024-10-155-10/+10
|
* gh-89819: Add argument_default and conflict_handler to add_argument_group() ↵Savannah Ostrowski2024-10-151-1/+7
| | | | docs (GH-125379)
* gh-85453: Improve variable mark up for datetime.rst (#120702)edson duarte2024-10-141-17/+17
| | | Variables and literals are marked up using backticks.
* gh-121798: Add class method Decimal.from_number() (GH-121801)Serhiy Storchaka2024-10-141-0/+17
| | | | | | It is an alternate constructor which only accepts a single numeric argument. Unlike to Decimal.from_float() it accepts also Decimal. Unlike to the standard constructor, it does not accept strings and tuples.
* gh-121797: Add class method Fraction.from_number() (GH-121800)Serhiy Storchaka2024-10-141-0/+10
| | | | | | | | It is an alternative constructor which only accepts a single numeric argument. Unlike to Fraction.from_float() and Fraction.from_decimal() it accepts any real numbers supported by the standard constructor (int, float, Decimal, Rational numbers, objects with as_integer_ratio()). Unlike to the standard constructor, it does not accept strings.
* gh-123133: clarify p=0 case for "f" and "e" formatting types (GH-125426)Sergey B Kirpichev2024-10-141-6/+4
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-125289: Update sample code in asyncio-task.rst (GH-125292)Ghorban M. Tavakoly2024-10-121-1/+1
| | | | | | | | | | | | | | | | | | | * Update sample code in asyncio-task.rst This will change **coroutines** sample code in the **Awaitables** section and make the example clearer. * Update Doc/library/asyncio-task.rst Revert the added print Co-authored-by: Carol Willing <carolcode@willingconsulting.com> * Update Doc/library/asyncio-task.rst Co-authored-by: Carol Willing <carolcode@willingconsulting.com> --------- Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-125260: Change the default ``gzip.compress()`` mtime to 0 (#125261)Bernhard M. Wiedemann2024-10-121-2/+7
| | | | | | | | | This follows GNU gzip, which defaults to using 0 as the mtime for compressing stdin, where no file mtime is involved. This makes the output of gzip.compress() deterministic by default, greatly helping reproducible builds. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-85935: Explicitly document the case nargs=0 in argparse (GH-125302)Serhiy Storchaka2024-10-121-0/+5
|
* gh-59330: Improve error message for dest= for positionals (GH-125215)Serhiy Storchaka2024-10-121-0/+19
| | | | | | | Also improve the documentation. Specify how dest and metavar are derived from add_argument() positional arguments. Co-authored-by: Simon Law <sfllaw@sfllaw.ca>
* gh-116938: Clarify documentation of `dict` and `dict.update` regarding the ↵Victorien2024-10-111-12/+13
| | | | | | positional argument they accept (#125213) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Fix typo in ``Doclibrary/functions.rst`` (#125327)Rafael Fontenelle2024-10-111-1/+1
|
* gh-125058: update `_thread` docs regarding interruptibility of ↵Jan Kaliszewski2024-10-111-3/+5
| | | | `lock.acquire()` (#125141)
* gh-125296: Fix strange fragment identifier for `name or flags` in argparse ↵Savannah Ostrowski2024-10-111-1/+1
| | | | docs (#125297)
* Add some doctest cleanups for `turtle` and `configparser` (#125288)Alex Waygood2024-10-102-0/+6
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Note argparse exit code in documentation (GH-119568)Justin Kunimune2024-10-101-1/+2
| | | Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
* gh-71784: [doc] add usage examples for traceback.TracebackException (#125189)Irit Katriel2024-10-101-15/+118
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-124872: Refine contextvars documentation (#124773)Richard Hansen2024-10-091-30/+68
| | | | | | | | | | | | | * Add definitions for "context", "current context", and "context management protocol". * Update related definitions to be consistent with the new definitions. * Restructure the documentation for the `contextvars.Context` class to prepare for adding context manager support, and for consistency with the definitions. * Use `testcode` and `testoutput` to test the `Context.run` example. * Expand the documentation for the `Py_CONTEXT_EVENT_ENTER` and `Py_CONTEXT_EVENT_EXIT` events to clarify and to prepare for planned changes.
* gh-101100: Fix Sphinx warnings in `library/unittest.mock.rst` (#124106)Hugo van Kemenade2024-10-091-30/+30
|
* gh-125168: Fix typo in `__future__.rst` (#125183)JamesMcCarthy212024-10-091-1/+1
| | | | | | | | | * Update `__future__.rst` Fixed typo in the sentence :pep:`649`: *Deferred evaluation of annotations using descriptors* - James McCarthy * Update `__future__.rst` Fixed sphinx formatting
* gh-101100: Consolidate documentation on `ModuleType` attributes (#124709)Alex Waygood2024-10-095-111/+49
| | | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Barry Warsaw <barry@python.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974)Serhiy Storchaka2024-10-091-3/+3
| | | | | Now it returns a tuple of up to 100 strings (an empty tuple on most locales). Previously it returned the first item of that tuple or an empty string.
* docs: in venv table use executable name (GH-124315)musvaage2024-10-091-1/+1
| | | Co-authored-by: musvaage <musvaage@users.noreply.github.com>
* gh-101552: Allow pydoc to display signatures in source format (#124669)Jelle Zijlstra2024-10-091-4/+21
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-124478: Cleanup argparse documentation (#124877)Savannah Ostrowski2024-10-081-435/+141
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* Misc improvements to the itertools docs (gh-125147)Raymond Hettinger2024-10-081-39/+97
|
* gh-124832: Add a note to indicate that `datetime.now` may return the same ↵spacemanspiff20072024-10-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | instant (#124834) * Update datetime.rst * Update datetime.rst replace warning with note * Update Doc/library/datetime.rst Co-authored-by: Victor Stinner <vstinner@python.org> * Update Doc/library/datetime.rst Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --------- Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-112433 add versionadded for `ctypes.Structure._align_` (#125087)monkeyman1922024-10-081-0/+2
| | | Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* Doc: Improve description of ``GET_LEN`` opcode (#114583)Kirill Podoprigora2024-10-081-1/+2
|
* gh-69998: Fix decoding error in locale.nl_langinfo() (GH-124963)Serhiy Storchaka2024-10-081-0/+9
| | | | | | | The function now sets temporarily the LC_CTYPE locale to the locale of the category that determines the requested value if the locales are different and the resulting string is non-ASCII. This temporary change affects other threads.